34. WAP to check if given 2 integers are equal or not using conditional operator.
#include<stdio.h>
void
main()
{
int num1,num2;
printf("Enter 1st number :
");
scanf("%d",&num1);
printf("Enter 2nd number :
");
scanf("%d",&num2);
num1^num2 ? printf("Not
same\n"):printf("Same\n");
}
Comments
Post a Comment