Advertisement Remove all ads

Write a Program in C ++ to Accept Three Integers from Keyboard and Find Greatest Number with Using Condition Control - Computer Science 1

Write a program in C ++ to accept three integers from keyboard and find greatest number with using Condition Control

Advertisement Remove all ads

Solution

(b)

void main ( ) (5)
{ int a, b, c, big;
cout <<“ Enter three no =”;
cin >> a >> b >> c;
big = a;
if (b > big)
{ big = b;}
if (c > big)
{ big = c; }
cout <<“\n largest number = “ <<big;
getch ( );
}
Concept: C++ Programming
  Is there an error in this question or solution?
Advertisement Remove all ads

APPEARS IN

Advertisement Remove all ads
Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×