TUGAS ALGORITMA PEMROGAMAN 12.1E
membuat program sederhana c++
membuat program sederhana c++
#include<conio>
#include<iostream>
#include<math>
#include<stdio>
main()
{
char teller[20];
float saldo_awal,tabungan,potongan,bunga,saldo_akhir;
cout<<"\t\tBank Harapan"<<endl;
cout<<"\tJl. Maju Pantang Mundur No.1/2"<<endl;
cout<<"Teller\t= ";gets(teller);
cout<<"======================================================="<<endl;
cout<<"Saldo awal\t= ";cin>>saldo_awal;
cout<<"Tabungan\t= ";cin>>tabungan;
cout<<"Potongan\t= ";cin>>potongan;
bunga=(saldo_awal*5)/1000;
cout<<"Bunga\t\t= "<<bunga<<endl;
saldo_akhir=saldo_awal+tabungan-potongan+bunga;
cout<<"Saldo akhir\t= "<<saldo_akhir<<endl;
cout<<"======================================================="<<endl;
cout<<"\tTerimakasih Atas Kunjungan Anda"<<endl;
cout<<"Tingkatkan Terus Saldo Tabungan Anda dan Raih Hadiahnya";
getch();
}
Comments
Post a Comment