#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<iomanip.h>
#include<string.h>
main()
{
char kd,nm[20],jns;
int byk,tarif,total;
clrscr();
cout<<endl<<endl;
cout<<"PERPUSTAKAAN KONOHA BOOK"<<endl;
cout<<"JL.Kalibata Timur No.37 Telp (021)7901074"<<endl;
cout<<"======================================"<<endl;
cout<<"Nama penyewa buku :";cin>>nm;
cout<<"Kode buku [C/K/N] :";cin>>kd;
cout<<"Banyak pinjam :";cin>>byk;
if (kd=='C')
{
jns="Cerpen";
tarif=500;
}
else if(kd=='K')
{
jns="Komik";
tarif=700;
}
else if(kd=='N')
{
jns="Novel";
tarif=1000;
}
cout<<"Jenis Buku :"<<jns<<endl;
cout<<"Tarif sewa :"<<tarif<<endl;
total=trf*byk;
cout<<"======================================"<<endl;
cout<<"Jumlah Bayar :"<<total<<endl;
cout<<"======================================"<<endl;
cout<<"TERIMA KASIH"<<endl;
getch();
"TERIMAKASIH JUGA UNTUK KLIK IKLAN YANG ADA''
• www.example.com/xyz.html
is treated the same as
http://example.com/xyz.html
• Add a trailing slash where appropriate:
http://www.google.com/webmasters/tools
is treated the same as
http://www.google.com/webmasters/tools/
}
No comments:
Post a Comment