हिंदी

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

Advertisements
Advertisements

प्रश्न

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

उत्तर

(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 ( );
}
shaalaa.com
C++ Programming
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2014-2015 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×