Feed Headline Animator

Write a program to input three integer values. Compare the three values to find out if they are equal .Use “ nested if statement”

Main()
{
int r,n,b;
clrscr();
printf(Enter first value ?\n”);
scanf(“%d”,&r);
printf(“Enter second value ?\n”);
scanf(“%d”,&n);
printf(“Enter third value ?\n”);
scanf(“%d”,&b);
if(r==n)
{
if(r==b)
printf(“All values are equal\n”);
}
else
printf(“These values are different\n”);
}


Posted by: Wasim Javed

No comments:

Post a Comment