# include <conio>
# include <iostream>
main ()
{
int A [100];
int max, limit, Number, select;
court <<"Enter limit:";
cin>> limit;
Number = 0;
for (int x = 0; x <limit; x + +) {
court <<"\ n \ nEnter data" <<(x +1) <<"=";
cin>> A [x];
Number = Number + A [x];}
court <<"\ n \ njumlah =" <<Number;
for (int y = 0; y <limit; y + +) {
if (A [y]> max) {
max = A [y];
}
}
court <<"\ nmax =" <<max;
getch ();}
Thursday, June 30, 2011
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment