मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

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×