The Wall Known Mathed
#include <stdio.h>
int main()
{
int num1, num2;
printf("Enter two numbers: ");
scanf("%d%d", &num1, &num2);
if(num1 > num2)
{
printf("%d is
maximum
", num1);
}
if(num2 > num1)
{
printf("%d is maximum", num2);
}
if(num1 == num2)
{
printf("Both are equal");
}
return 0;
}
--------------------------------------------------------------------------------
The Esiest Known Mathed
#include <stdio.h>
int main()
{
int num1,num2;
printf("Enter The two number: ");
scanf("%d%d", &num1, &num2);
if(num1 > num2)
{
printf("%d is
maximum
", num1);
}
else if(num1 < num2)
{
printf("%d is maximum", num2);
}
else
{
printf("Both are equal");
}
return 0;
}
No comments:
Post a Comment