C Program to Find Person is Senior Citizen Or Not

  C Program to Find Person is Senior Citizen Or Not 


/************************************

 C program to find person is senior citizen or not 

 ****************************************************/

 

 #include<stdio.h>

 #include<conio.h>

 void main()

 {

     int age ;

    clrscr();

     printf("\t\t***Output***\n");

     printf("Enter age of person\n");

     scanf("%d",&age);

     if(age>=65)

     printf("Person's age is %d. He/She is senior citizen\n",age);

     else

     printf("Person's age is %d. He/She is not senior citizen\n",age);

     printf("End of program");

 }


***Output***

Enter age of person

45

Person's age is 45. He/She is not senior citizen

End of program

टिप्पणी पोस्ट करा

0 टिप्पण्या