35-Write a C program to use function

Program: 35

Write a C program to display whether number is prime or not (while-loop).

#include
#include
void India();
void up();
void bijnor();
void main()
{
    printf("I am in main\n");
    India();
    up();
    bijnor();
    getch();
}
void India()
{
    printf("I am in India\n");
}
void up()
{
    printf("I am in Uttar Pradesh\n");
}
void bijnor()
{
    printf("I am in Bijnor");
}
Output
I am in main

I am in India

I am in Uttar Pradesh

I am in Bijnor

Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Related Post
Leave a Comment

This website uses cookies.