#include "stdio.h"
#include "conio.h"
void main()
{ int index, nilai[10];
clrscr();
/* input nilai mahasiswa */
printf("Input nilai 10 mahasiswa \n ");
for(index=0; index < 10; index++)
{ printf("Mahasiswa %i : ", index+1);
scanf("%i", &nilai[index]);
}
/* tampilkan nilai mahasiswa */
printf("Nilai mahasiswa yang telah diinput");
for(index=0; index < 10; index++)
{ printf("%5.0i", nilai[index]);
}
getch();
}
Friday, 26 October 2018
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment