Hi, The '%' sign in c++ called the remainder.Which means that the remainder of some thing as when we devide 5 by 2 then 2 goes only 2 times as...
int sum,i,n; cin>>n; sum=0; for(i=1;i<=n;i++) if(i%2==0 && i%3==0) { cout<<i; sum=sum+i; } end of for loop cout<<"sum="sum; end of...
1.first of all take number from the user 2.then run a loop from 1 to user number 3.then inside loop write the code of if statement that if the...
Separate names with a comma.