Quick actions

cmd+k|ctrl+k

Navigation

Languages

Latihan Pemograman Komputer 3-1

Snippet info

Language

Cpp

Visibility

public

Author

fadhlanr

Created

2025-12-01T06:03:45.283093Z

Updated

2025-12-13T01:51:28.690401Z

#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    char nim[10], nama[30];

    printf("INPUT DATA MAHASISWA\n");
    printf("NIM     : \n");
    scanf("%s", nim);
    printf("NAMA    : \n");
    scanf("%s", nama);

    // Tampilkan hasil input
    printf("\nNIM     : %s\n", nim);
    printf("NAMA    : %s\n", nama);

    return 0;
}
//Nama  : M Fadhlan Robbi
//NIM   : 3420240001
INFO