Home | Computer Science
7.Write a programme using if & else with (>) 

#include<stdio.h>
main()
{
int a,b;
a=50;
b=45;
if (a>b)
{
printf("%d",a);
}
else
{
printf("%d",b);
}
getch();
}

OUTPUT

8. Write a programme using if & else with (<)

#include<stdio.h>
main()
{
int a,b;
a=10;
b=7;
if (a<b)
{
printf("%d",a);
}
else
{
printf("%d",b);
}
getch();
}

OUTPUT