Develop a C program to print all the integer numbers divisible by 7 between 1 to 150 using for loop.

Code

#include<stdio.h>
int main(){
int i;
for(i=1; i<=150; i++){
if(i%7 == 0){
printf("%d\n",i);
}
}
return 0;
}

Output