#include <stdio.h>
int main ()
{
int n [10];
int max;
int i;
for (i=0; i<10; i++)
{
printf("Input bilangan = ",i); /* menampilkan pesan ke layar */
scanf("%d",&n[i]);
}
max = n [0] ;
for (i=0;i<=10;i++)
{
if (max>n[i])
{max = n[i];}
}
printf("nilai minimalnya = %d\n",max);
return 0;
}
Langganan:
Posting Komentar (Atom)
0 Response to "program nilai max bahasa c"
Posting Komentar