- 2
Write a program in c to find the number and sum of all integer between 1 and 50 which are divisible by 3
Anick Chandra Das
5 Antworten
+ 2
Or you can start from i=3 and increment by 3
+ 1
your assignment is now my property
+ 1
int sum =0;
for(int i=1;i<=50;i++){
if(i%3==0)
sum+=i;
}
printf(%d,sum)
//paste this in your main
0
Plz help me program