Quick actions

cmd+k|ctrl+k

Navigation

Languages

Latihan Pemograman Komputer 4_3

Snippet info

Language

Cpp

Visibility

public

Author

fadhlanr

Created

2025-12-31T03:40:57.853143Z

Updated

2025-12-31T03:45:09.057892Z

#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;

int main() {
    int nilai;
    char X[10];

    printf("\nInputkan sebuah nilai: "); scanf("%i", &nilai);

    if (nilai >= 60) 
        strcpy(X, "LULUS"); else strcpy(X, "GAGAL");

    printf("\n\n%s", X);
    printf("\nProgram Selesai.");
     
     cout << "\n\nNama : M Fadhlan Robbi"<<endl;
     cout << "Nim  : 3420240001";
    return 0;
}

//NAMA  : M Fadhlan Robbi
//NIM   : 3420240001
INFO