How to use decision control structure using multiple if
use of decision control structure using multiple if
void main()
{
int x;
printf("Enter the value of x:");
scanf("%d",&x);
if(x==10)
printf("Good");
if(x<10) printf("Poor"); if(x>10)
printf("Excellent");
}
use of decision control structure using multiple if
void main()
{
int x;
printf("Enter the value of x:");
scanf("%d",&x);
if(x==10)
printf("Good");
if(x<10) printf("Poor"); if(x>10)
printf("Excellent");
}
0 comments: