if- else check whether you are young or child ?

C Programming Language / Decision Making of C Language

1099

Program:

 #include"stdio.h"
void main()
{
int age=40;
	if(age<18)
	{
	printf("you are child \n");
	}
	else
	{
	printf("you are young \n");
	}
 
} 

Output:

you are young
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.