Contoh :
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float jumlah, total;
jumlah = 10;
float harga = 250;
cout<<"jumlah = "<<jumlah<<endl;
cout<<"harga = "<<harga<<endl;
cout<<"total = "<<jumlah*harga<<endl;
getch();
}
Maka Hasilnya :
0 comments:
Post a Comment