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

Why does the narrator refer to himself as an ogre in the story The Brown Chest
What is 0.25 divided by 1.075?
What type of investigation could Richard conduct to determine if he is seeing the same population of blue jays in the winter as in the summerA.DescriptiveB.Comp
What is the rational number for 1.1?
Which describes the role of vitamins?
A very quick and fast race lasting no longer than two minutes would be an example of an anaerobic exercise. Question 3 options: True False
What is the most reactive metal on the periodic table?
Shoe for All Company was a monopoly. But then competition was allowed to enter its market. As a result of this competition, the prices at Shoe for All Company w
what two consecutive numbers equal to 226
the product of two consecutive intergers is 15 what are the intergers