31 January 2008

Konstanta 1

#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 :

Don't Spam Here

0 komentar to “Konstanta 1”

 

Copyright © 2009 Fresh Themes Gallery | NdyTeeN. All Rights Reserved. Powered by Blogger and Distributed by Blogtemplate4u .