Modul 5.1
http://www.youtube.com/watch?v=NoxVYj5y3DA
Listing Program
// Project 5-1; Percabangan if
// NAMA : Wulan kandiani kusumah wardani
// NRP : 49013036
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main ()
{
std:: cout <<"Kelulusan Siswa \n \n";
double Nilai_Ujian;
cout << " Masukan Nilai Ujian : ";
cin >> Nilai_Ujian ;
cout << endl;
char hasil_ujian[12] = "Tidak Lulus";
if (Nilai_Ujian >= 60)
{
strcpy (hasil_ujian,"Lulus");
cout << "Hasil Ujian : "<<hasil_ujian <<endl << endl;
system("pause");
return 0;
}
}
http://www.youtube.com/watch?v=NoxVYj5y3DA
Listing Program
// Project 5-1; Percabangan if
// NAMA : Wulan kandiani kusumah wardani
// NRP : 49013036
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main ()
{
std:: cout <<"Kelulusan Siswa \n \n";
double Nilai_Ujian;
cout << " Masukan Nilai Ujian : ";
cin >> Nilai_Ujian ;
cout << endl;
char hasil_ujian[12] = "Tidak Lulus";
if (Nilai_Ujian >= 60)
{
strcpy (hasil_ujian,"Lulus");
cout << "Hasil Ujian : "<<hasil_ujian <<endl << endl;
system("pause");
return 0;
}
}
Tidak ada komentar:
Posting Komentar