write program for finding the first number greater than 100 which is divisible by 7 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

write program for finding the first number greater than 100 which is divisible by 7

13th Sep 2018, 9:52 AM
Michael
4 Answers
+ 1
thanks
13th Sep 2018, 10:15 AM
Michael
0
int i = 100; while(i % 7 != 0){ i++; } /* i as the value of the first number greater than 100 divisible by 7 */
13th Sep 2018, 10:14 AM
Sam Pache
Sam Pache - avatar
0
pleasure ;)
13th Sep 2018, 10:16 AM
Sam Pache
Sam Pache - avatar
0
Sam Pache Don't present whole work but give hints. That's better for learning.
13th Sep 2018, 11:34 AM
Matthias
Matthias - avatar