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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?