Hi,Today we Make simple program about to Persons Age Checker in C.Hope you Like it.If you want give suggestion Please Tell us.
Make Program To Persons Age Checker is Person Adult or Not in C
Source Code
#include <iostream> int age = 0; int main() { printf("\n\n"); printf("\t===== PERSONS AGECHECKER IN C ====="); printf("\n\n"); printf("What is your age : "); scanf("%d",&age); if (age >= 18 ) { printf("\n\n"); printf("At the age of %d you are already an ADULT.",age); } else { printf("\n\n"); printf("At the age of %d you are Not ADULT.",age); } printf("\n\n"); printf("END OF PROGRAM"); printf("\n\n"); }
Output of program
===== PERSONS AGECHECKER IN C =====
What is your age : 25
At the age of 25 you are already an ADULT.
END OF PROGRAM