Senin, 08 Oktober 2012

Script Borland C++ 5.02 part 1

#include<stdio.h>#include<conio.h>
#include<iostream.h>
main()
{
char v[14],w[14];
int a,b,c,d,e;
clrscr();
cout<<"TOKO BUAH"<<endl;
cout<<"SEGAR SARI"<<endl;
cout<<"=============="<<endl;
cout<<"Nama Pembeli =";cin>>v;
cout<<"Nama Buah =";cin>>w;
cout<<"Harga buah =";cin>>a;
cout<<"Jumlah Beli =";cin>>b;
c=a*b
clrscr();
cout<<"TOKO BUAH"<<endl;
cout<<"SEGAR SARI"<<endl;
cout<<"Struk Pembayaran"<<endl;
cout<<"================"<<endl;
cout<<"Nama Pembeli ="<<v<<endl;
cout<<"Nama Buah ="<<w<<endl;
cout<<"Harga Buah =Rp."<<a<<endl;
cout<<"Jumlah beli ="<<b<<endl;
cout<<"Total Bayar =Rp."<<c<<endl;
cout<<"Bayar =Rp.";cin>>d;
e=d-c;
cout<<"Kembali =Rp."<<e<<endl;
cout<<"Terima Kasih Atas Kunjungannya";
getch();
}

0 komentar:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo