Monday, January 18, 2010

Large Print Keyboard Using For Loop,write A Complete C++ Program That Gets 55 Integer Values From The Keyboard.?

Using for loop,write a complete c++ program that gets 55 integer values from the keyboard.? - large print keyboard

Number assigned to each variable name when he reads. During the first loop, the integer before it is the largest and smallest number.For rest of the loop the whole program compares the newly introduced and identified with the previous one and the least bad. Finally, it shows the highest and lowest number.

1 comment:

iyiogren... said...

# \\ \\ Include \\ \\ \\ \\ u0026lt; iostream>
using namespace std;

int main ()
(
int i, 55 [];
int min = 0, max = 0;
for (i = 0, i \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, 55, i + +) (
\\ \\ \\ \\ Court \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt "a [" \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ i u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; "] ="
cin>> a [i];
)
min = a [0];
max = a [0];

for (i = 1, i \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, 55, i + +) (
if (min> a [i]) min = a [i];
if (max \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; a [i]) max = a [i];
)
\\ \\ \\ \\ Court \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, "min =" \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt min;;
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; endl;

\\ \\ \\ \\ Court \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, "max =" \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, max;

return 0;
)

Post a Comment