latihan CPP 3.4

Run Settings
LanguageC++
Language Version
Run Command
#include <stdio.h> int main() { //nama : la ode ian //nim : 34020210002 //Prodi : Teknik informatika char nim[10], nama[30], garis [] = "\n======================================"; float nilai; printf("%s ", garis); printf("\nINPUT DATA MAHASISWA"); printf("%s", garis); printf("\nNIM \t: "); scanf("%s", &nim); fflush(stdin); printf("\nNAMA \t: "); gets(nama); printf("\nNILAI \t: "); scanf("%f ", &nilai); printf("%s \n", garis); //tampilkan printf("NIM \t: %s", nim); printf("\nNAMA \t: %s", nama); printf("\nNILAI \t: %f", nilai); printf("%s", garis); printf("\nNILAI (PEMBULATAN) : %.2f", nilai); printf("%s", garis); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines