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

when we divide 2√3 by 2√3 it gives 3 how ?(2√3/2√3)
A bone that is broken but does not pierce the skin is a what?
how do I figure out the weight loss of tina? she lost 3 pounds on the first week of her diet. she gained a pound on the second week, and then lost 2 pounds a we
How many significant figures are in the number 307? 080?
within a book on a desk, there are billions of forces pushing and pulling on all the molecules. why is it these forces never by chance add up to a net force in
what is 307,495 rounded to the nearest thousand and how do I figure it?
A solution containing 30% insecticide is to be mixed with a solution containing 50% insecticide to make 200 L of a solutions containing 42% insecticide. How muc
when we divide 2√3 by 2√3 it gives 3 how ?(2√3/2√3)
what is the PE of a 10 kg box that drops 10 meters?
determine the smallest 6 digit number which is exactly divisible by 8,15,and21