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 = 1i <= ni++)
    {
        if(i%7 == 0){
            continue;
        } else{
            printf("%d\n"i);
        }
    }
    
    return 0;
}

Comments

Popular posts from this blog

C program to find the greatest of three numbers with user input.

How to add to integers in C programming

Access denied in VS code for gcc while doing C programming