Lab 5A Problem Input two DWORD values from the keyboard. Determine which number is larger or if they are even. Your program should look like the following: First number larger Enter a number 12 Enter a number 10 12 is the larger number Press any key to close this window... Second number larger Enter a number 10 Enter a number 12 12 is the larger number Press any key to close this window... Numbers Equal Enter a number 12 Enter a number 12 Numbers are equal Press any key to close this window...

Answers

Answer 1

Answer:

Explanation:

#include<iostream>

using namespace std;

int main()

{

int n1,n2;

cout<<"Enter a number:"<<endl; //Entering first number

cin>>n1;

cout<<"Enter a number:"<<endl; //Entering second number

cin>>n2;

if(n1%2==0 && n1%2==0) //Checking whether the two number are even or not

{

if(n1>n2)

{

cout<<n1<<" is the larger number"<<endl;

}

else if(n1==n2)

{

cout<<"Numbers are equal"<<endl;

}

else

{

cout<<n2<<" is the larger number"<<endl;

}

}

else

{

cout<<"The number are not even"<<endl;

}

}


Related Questions

A designer needs to select the material for a plate under tensile stress. Assuming that the applied tensile force is 13,000 lb and the area under the stress is 4 square inches, determine which material should be selected to assure safety. Assume safety factor is 2. Material A: Ultimate Tensile stress is 8000 lb/in2Material B: Ultimate Tensile stress is 5500 lb/in2

Answers

Wow Muy bien no se que dice pero bien.
Other Questions
In your opinion, how important is it for organizations to enforce internal discipline (e.g., employee termination) in preventing occupational fraud in the workplace Math algebra 2 show youre work plz ayuda, ayuda, ayuda urgente tengo 5 minutos necesito el nombre de lo que viene en las imgenes Amic and Bernie built a maze for their hamsters. Annic's hamster completed the maze 7 seconds less than twice the time it took Bernie's hamster to complete the maze. If Bernie's hamster completed the maze in b seconds, which expression represents the time, in seconds, it took Annie's hamster to complete the maze? A. 7-2bB. 2b-7c. 2b+7D. 2b/7 1) Suppose that South Pangean debt is $100 million and the interest rate it pays on that debt is 4 percent. That means its interest payments must be $___million. 2) If South Pangean expenditures are $30 million without interest payments, that means its expenditures with interest payments are $___million. How did bombing change thepicture of war in WWII? simple answer please Create a function called GetColors that will accept two parameters. These parameters can only be red, blue or yellow. Your function needs to analyze these two colors and determine the color mix. Make sure your function returns the color mix back to where it was called. Need help for this question pleaseeee Which best describes the Democratic Party in the 1800's A _____ can be used to create and test prototypes, develop interfaces, and simulate factory layouts and assembly lines, without investing in physical equipment and layouts. evaluate the expression when x= -3 and y=3 y-8x Try AgainAlvin is 7 years older than Elga. The sum of their ages is 79. What is Elga's age?39 years old? can anyone help with this please !!!! Dannys dog weighs 45.33 pounds. His cat only weighs 14.89 pounds. About how much more does his dog weigh?rounding Need help with this will mark brainliest 2.Select the correct answer.Erica is working in the lab. She wants to remove the fine dust particles suspended in a sample of oil. Which method is she most likely to use? Chik Chik Company showed the following balances at the end of its first year: Cash $ 3,000 Prepaid insurance 4,700 Accounts receivable 3,500 Accounts payable 2,800 Notes payable 4,200 Common stock 1,400 Dividends 700 Revenues 22,000 Expenses 17,500 What did Chik Chik Company show as total credits on its trial balance Bob sells the vegetables he grows in a farmer's market. Bob is a little disorganized and has been looking for a good way to track his sales. If Bob creates a database to track the sales of vegetables, what is the appropriate relationship between orders and products? Discuss four causes of road accidents in Ghana. realiza una carta dirijida para la autoridad de tu comunidad en donde expongas la problematica y las soluciones que propones para resolver el problema.