- 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

31st May 2021, 5:43 AM
Anick Chandra Das
Anick Chandra Das - avatar
4 Answers
+ 2
Or you can start from i=3 and increment by 3
1st Jun 2021, 3:00 AM
ch fi
ch fi - avatar
+ 1
your assignment is now my property
31st May 2021, 3:09 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 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
1st Jun 2021, 2:40 AM
ch fi
ch fi - avatar
0
Plz help me program
31st May 2021, 5:44 AM
Anick Chandra Das
Anick Chandra Das - avatar