WAP that checks whether the two numbers entered by the user are equal or not.
#include <stdio.h>
void main()
{
int m,n;
printf("Enter the values for M and N\n");
scanf("%d %d", &m,&n);
if(m == n )
printf("M and N are equal\n");
else
printf("M and N are not equal\n");
}
OutputEnter the values for M and N
34 45
M and N are not equal
No comments:
Post a Comment