For the integers n in the range of 60 to 100, print each on its own row as well as the divisors of n that are evenly divisible by 4.
With this I have it printing:Code:#include <stdio.h> int main (void) { int a, sum = 0; for( a = 60; a <= 100; a++) { sum += a; printf("%d:\n", a); } }
60:
61:
62:
....
....
100:
I am looking to print something like this:
60: 4 12 20 60
...
....
.....
100: 4 20 100
What would I do to print that out? Use a mod?