bahasa pemrograman

untuk mengetahuai harga sebelum kena pajak

#include<iostream.h>

 

int main (){

float a,b,c,d;

c=100;

 

cout<<“Harga Barang: “;

cin>>a;

cout<<“Tarif pajak (%): “;

cin>>b;

d=a-(b*a/(c+b));

cout<<“Harga sebelum kena pajak: “<<d;

return 0;

}

jika ada kekurangan atau kesalahan dalam pemrograman ini mohon bimbingan & pembritahuanya..

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: