rajnarayan45002
rajnarayan45002 rajnarayan45002
  • 25-02-2021
  • Computers and Technology
contestada

write a c++pogram to accept two integers and check whether they are equal or not​

Respuesta :

isyllus
isyllus isyllus
  • 02-03-2021

Program to accept two integers and check whether they are equal or not​.

#include<iostream.h>

void main( )

using namespace std;

int main( )

{

int num1, num2;

cout<< " Input the values for number1 and number2: " ;

cin>> num1 >> num2;

if (num1 == num2)

{

cout<< " Both numbers are equal";

}

else

{

cout<< " numbers are not equal" ;

}

}

Answer Link

Otras preguntas

Which of the following is equivalent to 7-2( x + 2) <-4 - 3(1 – x)? (A) -5 x < -10 (B) - X<-16 (C) -2x <-17 (D) 6x<-9
3+7×6÷3 find the value of the expression ​
Which is 0.54 delete converted to a simplified fraction
What is the completely factored form of 3x^5-7x^4+6x^2-14x?
Mrs. Williams has 1/4 gallon of juice left in a bottle. She pours an equal amount ofjuice into 5 glasses to empty the bottle. Which model represents the fractio
If a pizza has a diameter of 24 inches, what is its radius?
What are the major land biomes?
what is the answer which numbers go to the name hope it's not confusing?
How many essential amino acids are needed to create a complete protein? 08 10 O 12 22
what is the area of this circle?