Computer Science, asked by cavin2325, 1 year ago

Write a program to print the following series 1 4 7 10 ……40. using for loop in c

Answers

Answered by mmds06
0

Answer:

#include<studio.h>

Int main()

{

Int n, I;

for( I=1; I<= 40;I+=3)// increment I with 3

{

printf( I);

printf(" ");

}

return 0//for main

}

Explanation:

Copy this code and paste in your c editor.

Then run.

Similar questions