#include<stdio.h>
main()
{
float rataan, n, bil, rataanmin, rataanmax;
int i, x=0;
scanf ("%d", n);
for (i=1;i<=n;i++){
scanf("%d", bil);
x+=bil;
}
rataan=x/n;
printf("rataan", "%.3c", rataan);
for (i=1;i<=n;i++){
scanf("%d", bil);
if (rataan<bil)
rataanmin=bil;
if (rataan>bil)
rataanmax=bil;
}
printf("min", "%.3c", rataanmin);
printf("min", "%.3c", rataanmax);
system ("pause");
return 0;
}
Thursday, October 08, 2009
rataa, n min n max
Subscribe to:
Post Comments (Atom)
0 komentar:
Post a Comment