Find the largest value between two variable
Find the largest value between two variable in C
#include<stdio.h>
main()
{
int a,b;
printf("Enthe the value of a\n");
scanf("%d",&a);
printf("Enter the value of b\n");
scanf("%d",&b);
if(a>b)
printf("a is largest\n");
else
printf("b is largest\n");
}
No comments:
Post a Comment