#include <iostream.h>
#include <conio.h>
#define a 9
main()
{
float b,penjumlahan,pengurangan,perkalian,pembagian;
b=2;
penjumlahan = a + b;
pengurangan = a - b;
perkalian = a * b;
pembagian = a / b;
cout<<"Penjumlahan : "<<a<<" + "<<b<<" = "<<penjumlahan<<endl;
cout<<"Pengurangan : "<<a<<" - "<<b<<" = "<<pengurangan<<endl;
cout<<"Perkalian : "<<a<<" * "<<b<<" = "<<perkalian<<endl;
cout<<"Pembagian : "<<a<<" / "<<b<<" = "<<pembagian<<endl;
getch();
}
COMMENTS :
0 komentar to “Konstanta 1”
Post a Comment