Computer Science, asked by aakuhajari, 7 months ago

write an algorithm to check wheather the given number is equal or not equal?​

Answers

Answered by Shobha91
1

Answer:

#include <stdio.h>

void main()

{

int int1, int2;

printf("Input the values for Number1 and Number2 : ");

scanf("%d %d", &int1, &int2);

if (int1 == int2)

printf("Number1 and Number2 are equal\n");

else

printf("Number1 and Number2 are not equal\n");

}

Answered by parthu2011
0

Answer:

in c programming language:

#include <stdio.h>

void main()

{

   int int1, int2;

 

   printf("Input the values for Number1 and Number2 : ");

   scanf("%d %d", &int1, &int2);

   if (int1 == int2)

       printf("Number1 and Number2 are equal\n");

   else

       printf("Number1 and Number2 are not equal\n");

}

Sample Output:

Input the values for Number1 and Number2 : 15 15                                                              

Number1 and Number2 are equal  

Explanation:

if you are pleased with answer in turn

please subscribe my youtube chanel(Ramakrishna Nallangari youtube channel) for my effort

search for  

Ramakrishna Nallangari in search box

of youtube

Similar questions