Input 3 numbers and find the difference beween smallest and the largest numbers??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Input 3 numbers and find the difference beween smallest and the largest numbers???

I NEED THE PROBLEM PLS ANSWER ITT

12th Jul 2016, 4:45 PM
Mohammed shibili
Mohammed shibili - avatar
3 Answers
0
1
12th Jul 2016, 4:57 PM
Meghana T
Meghana T - avatar
0
#include<iostream> using namespace std; int main() { int a, b, c, large_no; cout<<"Enter three no"<<endl; cin>>a>>b>>c; if(a>c) if(a>b) large_no=a; else large_no=b; else if(b>c) large_no =b; else large_no=c; cout<<"lagest no is "<<large_no<<endl; return 0; }
12th Jul 2016, 6:25 PM
meherDev
meherDev - avatar
0
please use pseudo code first to understand the process before start to code when yo dont get the answer post the pseudo code first
13th Jul 2016, 5:15 AM
Rafael Marroquin
Rafael Marroquin - avatar