C programming of statement coding of else if
//statement coding of else if
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
printf("enter the value of i: ");
scanf("%d",&i);
if(i<5)
{
printf("Hello world!\n");
}
else if(i<20)
{
printf("hello Jitendra");
}
else if(i>20)
{
printf("Ram Shayam Seeta");
}
return 0;
}
Comments
Post a Comment