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

An unforgettable dream
Rewrite the expression in the form z^n. z^3/4 x z^2
what is a chart spreadsheet applications
urgent please answer ​
What is the factored form of 1,458,43 – 2?
Instructions: Given the following constraints, find the maximum and minimum values for z. x + 3y < 0 Constraints: X – Y > 0
Question 5(Multiple Choice Worth 2 points) (02.05) Determine the vertex of the function f(x) = −4(x − 3)2 + 6. (6, −3) (6, 3) (3, 6) (−3, 6)
Im new and i need your help so please help me!!
If you could fix one issue in the world what would it be and why? Write 5-7 sentences
Fixed costs are $3,000, variable costs are $5 per unit. The company will manufacture 100 units and chart a 50% markup. Using the cost-plus pricing method, what