Home | Computer Science
19.write a programme using if & else with (<)

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

OUTPUT

20. Write a programme using integer with (++)

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

OUTPUT