19-Write a C program to find the right place for traveling.

Program: 19

Write a C program to find the right place for traveling

#include
#include
void main()
{
    int a;
    printf("Enter Money: ");
    scanf("%d", &a);
    if(a>10000)
    {
        printf("You can go anywhere in the India.");
    }
    else
   {
        if(a==10000)
        {
            printf("You can purchase Redmi y2");
        }
        else
           printf("You can travel inside Bijnor.");
    }
    getch();
}
Output
Enter Money: 200

You can travel inside 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.