Print 1 To N Numbers Omiting The Integers Which Are Divisible By 7 Using Loops
Answer:
#include<stdio.h>
int main()
{ int n;
scanf("%d", &n);
for (int i = 1; i <= n; i++)
{
if(i%7 == 0){
continue;
} else{
printf("%d\n", i);
}
}
return 0;
}
Comments
Post a Comment