blog iseng iseng
Tuesday, 19 July 2011
try to make the program
do not have much to say right now we directly test the program, cekidot ....
<br /> #include<iostream><br /> #include<stdlib.h><br /> using namespace std;<br /> int jumlahkan(int x,int y){<br /> return x+y;<br /> }<br /> <br /> int main(int argc, char *argv[])<br /> {<br /> int a=5,b=10;<br /> int hasil;<br /> cout<<"nilai a : "<<a<<endl; cout<<"nilai b : "<<b<<endl; cout<<"hasil penjumlahan : "<<jumlahkan(a,b)<<endl; system("PAUSE"); return 0; }
It is the sum of the input program that we have direct input in the program (int a = 5, b = 10;)
final result
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment