- 1

Hello friene here is my program of codevita please if anyone can explain plz contact me asap <redacted>

#include<iostream> #include<cmath> using namespace std; int main() {     long n,c=0;     cin>>n;     for(long l=2;l<=n;l++)     {         if(n%l==0)         {             while(n%l==0)                 n=n/l;             c++;         }     }     double d=pow(2,c)-1;     cout<<(int)(d); }

22nd Aug 2018, 7:05 AM
Girraj Mehta
Girraj Mehta - avatar
6 Réponses
+ 3
Your program but you need someone to explain it to you?
22nd Aug 2018, 7:16 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
debug step by step and you can understand. is kinda weird you write code and dont understand.
22nd Aug 2018, 9:57 AM
João Duarte
João Duarte - avatar
+ 1
Please don't post personal details.
22nd Aug 2018, 7:13 AM
Duncan
Duncan - avatar
+ 1
Did you write it, or copy it from somewhere. If you wrote it, surely you have some understanding. If you copied it, then it's not your code.
22nd Aug 2018, 11:55 AM
Duncan
Duncan - avatar
0
plz let me can u explain this
22nd Aug 2018, 7:14 AM
Girraj Mehta
Girraj Mehta - avatar
0
yes can u explain plz
22nd Aug 2018, 7:49 AM
Girraj Mehta
Girraj Mehta - avatar