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

C Programming Language / Decision Making of C Language

1047

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.