Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
informatika / Cinta Avrille X MIPA 5
//g++ 7.4.0 #include <iostream> int main() { int npm, nilai; char nama [30] , matapelajaran [8], hurufmutu; //input data cout<<"Masukan NPM : "; cin>>npm; cout<<"Masukan Nama Siswa : "; cin>>nama; cout<<"Masukan Mata Pelajaran : "; cin>>matakuliah; cout<<"Masukan Nilai Mata Pelajaran : "; cin>>nilai; //menentukan indeks prestasi if (nilai<=45){ hurufmutu='E'; }else if(nilai>45 && nilai<=55){ hurufmutu='D'; }else if (nilai>55 && nilai<=65){ hurufmutu='C'; }else if (nilai>65 && nilai<=75){ hurufmutu='B'; }else{ hurufmutu='A'; } cout<<"=============================================================================="<<endl; cout<<"Siswa dengan npm "<<npm<<" atas nama "<<nama<<" pada mata pelajaran "<<matapelajaran<<" mendapatkan"<<endl; cout<<"nilai "<<hurufmutu<<endl; cout<<"=============================================================================="<<endl; return 0; }
run
|
edit
|
history
|
help
0
doubly
is_sorted_30-Seconds-of-C++
nobita's candies problem
temporaries and move constructor
typedef char*
Test 4(2017)
Operator Overload
RegexReplace
PointPattern
variadic template