C++ Membulatkan Total Belanja

#include<iostream>
#include<conio.h>
main(){
int a,b,c;
cout<<"\n  *******************************\n";
cout<<"  ** MEMBULATKAN TOTAL BELANJA **\n";
cout<<"  *******************************\n\n";
cout<<" Masukkan total belanja : Rp. ";
cin>>a;
b=a/50;
if(c=b*50){
cout<<"            ______________________________________________";
cout<<"\n  ** Total yang harus dibayarkan Rp. "<<c<<" **";}
getch();
}

0 Response to "C++ Membulatkan Total Belanja"

Posting Komentar