Jumat, 18 Maret 2016

Kasus 2.1 Alpro

Program jumlah dari 3 buah bilangan bulat

DEV C++

#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, p;
cout<<"masukkan a : ";
cin>>a;
cout<<"masukkan b : ";
cin>>b;
cout<<"masukkan c : ";
cin>>c;
p=a+b+c;
cout<<"Jumlah : "<<p;
 return 0;
}

RAPTOR


Tidak ada komentar:

Posting Komentar