Kamis, 15 April 2010

Program Menghitung Biaya SKS

#include <iostream.h>
#include <conio.h>

main()
{
int sks,biaya,sppvar;
char nama[10],nim[10];

cout<<"masukkan nama mahasiswa = ";
cin>>nama;
cout<<"\nmasukkan NIM = ";
cin>>nim;
cout<<"\nmasukkan jumlah sks = ";
cin>>sks;
cout<<"\nmasukkan biaya sks variabel = ";
cin >> biaya ;                                                

sppvar=sks*biaya;
cout<<"Nama Mahasiswa = "<<nama;
cout<<"NIM Mahasiswa = "<<nim;
cout<<"\nbiaya sks yang harus dibayarkan = "<<sppvar;


getch();
}

Tidak ada komentar:

Posting Komentar