Hitung Beasiswa dengan C++

Tuesday, March 29, 2011 7:32 AM by Computer and Programming
#include <iostream>
#include <conio>

main()
{
float rerata;

cout<<"\t\t\tBeasiswa AMIKOM YOGYAKARTA"<<endl<<endl;

cout<<"Masukan rata-rata NEM =";
cin>>rerata;

if(rerata>=9.00)
cout<<"Beasiswa anda Rp 1,500,000";
else if
(rerata>=8.50 && rerata<9.00)
cout<"Beasiswa anda Rp 1,400,000";
else if
(rerata>=8.00 && rerata<8.50)
cout<<"Beasiswa anda Rp 1,300,000";
else if
(rerata>=7.50 && rerata<8.00)
cout<<"Beasiswa anda Rp 1,200,000";
else if
(rerata>7.00 && rerata<7.50)
cout<<"Beasiswa anda Rp 1,100,000";

getch();
}

0 Response to "Hitung Beasiswa dengan C++"

Post a Comment