logo blog

Contoh Program C++ Penjumlahan

Contoh Program C++ Penjumlahan


#include <iostream>
#include <conio.h>
using namespace std;
int main(){
float a,b,c;
cout<<"\n";
 cout<<" @@@@@@@@@@@@@@@@@@@ \n";
cout<<" @@@        Program Penjumlahan        @@@ \n";
 cout<<" @@@     Muhammad Husnu Dzihan    @@@ \n";
cout<<" @@@@@@@@@@@@@@@@@@@ \n";
cout<<endl;
cout<< "Masukkan Bilangan Pertama = ";
cin>>a;
cout<< "Masukkan Bilangan Kedua   = ";
cin>>b;
c=a+b;
cout<< "Hasil "<<a<<" + "<<b<<" = "<<c<<endl;
getch();
return 0;
}

Hasilnya :


Share this:

Enter your email address to get update from HusnuBoys.

Enter your email address:

Delivered by HusnuBoys

1 komentar

Makasih bang.......tugas seminggu di otak atik tapi gak bisa....setelah pelajarin cara abang jadi bisa dan ngerti

Copyright © 2015. Husnu Boys - All Rights Reserved
Template Created by Kompi Ajaib Proudly powered by Blogger