if- else check whether it is morning or after noon ?

C Programming Language Decision Making of C Language (Article) Decision Making of C Language (Program)

891

Program:

 #include"stdio.h"
void main()
{
int time=10;
 
	if(time>12)
	{
	printf("Good morning \n");
	}
	else
	{
	printf("Good after noon \n");
	}
 
} 

Output:

Good after noon
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.