Program perhitungan
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,b,c;
int jumlah;
cout<<"program menghitung 3 integer"<<endl;
cout<<"Masukkan nilai A :";cin>>a;
cout<<"Masukkan nilai B :";cin>>b;
cout<<"masukkan nilai C :";cin>>c;
cout<<"jumlah A+B+C ="<<a+b+c;
return 0;
}

0 komentar: