-->

Write a program to know two numbers entered by you are same or not.

//program to know two numbers entered by you are same or not.
#include<stdio.h>
#include<conio.h>
void main()
{
float n,n1;
printf("enter a number\n");
scanf("%f%f",&n,&n1);
if(n==n1)
{
printf("they are equal");
}
else
{
printf("they are not");
}
getch();
}

No comments:

Post a Comment