latihan CPP 3.4

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