Rabu, 13 April 2011

contoh program fuction c++ penjumlahan

#include <iostream.h>
int main ()
{
int a,b,c;
cout<<"PROGRAM PENJUMLAHAN"<<endl;
cout<<"Input nilai a : ";
cin>>a;
cout<<"Input nilai b : ";
cin>>b;
c=a+b;
cout<<"Hasil Penjumlahan : "<<c<<endl;
return 0;
}


0 komentar:

Posting Komentar