queenbaddest2021
queenbaddest2021 queenbaddest2021
  • 20-09-2021
  • Computers and Technology
contestada

Write a program in c++ to read two integers, calculate and print the smallest

Respuesta :

discipulus
discipulus discipulus
  • 20-09-2021

Answer:

#include<iostream>

using namespace std;

int main (){

int n1, n2;

cout<<"Enter 1st number";

cin>>n1;

cout<<"Enter 2nd number";

cin>>n2;

if(n1<n2){

cout<<"The 1st number is the smallest"<<endl<<" is= "<<n1;

}

else{

cout<<"The 2nd number is the smallest"<<endl<<" is= "<<n2;

}

}

return 0;

Answer Link

Otras preguntas

To make a summary of a theme’s objective development, the reader should base the summary on emotions. facts. judgments. opinions.
the structural and functional unit of skeletal muscle is called a/an
What are rickroll and lolcat examples of? A. Wikipedia entries B. Viruses C. Search engines D. Memes
Can someone help me out with this question
can someone please help me with this
Which statement best expresses the point of view of the two characters in the passage young Goodman brown exert
What’s 5/9 times 6?????????????????
What is an opposing claim in an informational text?(1 point) 1. an argument that is made in order to contradict the argument made by the author 2. a claim made
What’s 25/61 as a decimal, percentage PLEASE SHOW WORK if not that’s alright
is the energy present when an object is in motion?​