ap3cc.cpp
#include <stdio.h> #include <conio.h> int main(){ char name[25], npm[8],kelas[5]; printf("\nMasukan Nama : "); gets (name); printf("\nMasukan NPM : "); scanf ("%s", &npm); printf("\nMasukan Kelas : "); scanf ("%s", &kelas); printf("\n"); getch(); puts("=========Biodata========="); printf("\nNama : %s", name); printf("\nNPM : %s", npm); printf("\nKelas : %s", kelas); return 0; }