Feed Headline Animator

A quick demo of nested if-else statement(Nested “If –Else” Statement)

main()
{
int l;
printf(“Enter either 1 or 2”);
scanf(“%d”,&l);
if (I == 1)
printf(“You would go to heavent\n”);
else
{
if(I ==2)
printf(“Hell was created with you in mind”);
else
printf(“How about mother earth l”);
getch();
}
}


Posted by: Wasim Javed

No comments:

Post a Comment