#include "stdio.h"
#include "conio.h"
#include "iostream.h"
garis()
{ cout<<" \n \n ----------------------------------\n \n"; }
float tarif(char kd)
{
if((kd=='C')||(kd=='c'))
{ return (500); }
else if((kd=='K')||(kd=='k'))
{ return (700); }
else
{ return (1000); }
}
char *jenis(char kd)
{
if((kd=='C')||(kd=='c'))
{ return ("Cerpen"); }
else if((kd=='K')||(kd=='k'))
{ return ("Komik"); }
else
{ return ("Novel"); }
}
float bayar(float bp, float hrg)
{ return(bp*hrg); }
main()
{
char nm[15],kd,*jb; int bp; float hrg;
cout<
cout<<" Kode Buku [C/K/N : "; cin>>kd;
cout<<" Banyak Pinjam : "; cin>>bp; garis();
cout<<" Tarif Sewa : Rp. "<
cout<<" Jumlah yang harus dibayar sebesar Rp. "<
}
0 komentar