Академический Документы
Профессиональный Документы
Культура Документы
int main()
{
int x,y,z, total;
cout << "\n =================== mencarik nilai tambah
==========================";
cout << "\n masuk kan nilai x=";
cin >> x;
cout << "\n masuk kan nilai y=";
cin >> y;
cout << "\n masuk kan nilai z=";
cin >> z;
total= x+y+z;
return 0 ;
}
I.
II.
III.
IV.
Int main() = The main function is the point by where all C++ programs start
their execution, independently of its location within the source code.
V.
VI.
VII.
VIII.
IX.
X.
#include <iostream>
using std::cout;
using std::cin;
int main()
{
int x,y,z;
cout << "\n =================== mencarik nilai bahagi
==========================";
cout << "\n masuk kan nilai x=";
cin >> x;
cout << "\n masuk kan nilai y=";
cin >> y;
z= x/y;
std::cout << "\n
=====================================================================";
std::cout << "\n nilai x/y ialah =" << z;
std::cout << "\n
=====================================================================";
return 0 ;
}
XI.
XII.
XIII.
XIV.
Int main() = The main function is the point by where all C++ programs start
their execution, independently of its location within the source code.
XV.
XVI.
XVII.
XVIII.
XIX.
XX.
z= x/y;
return 0 ;
}
6.Compilation process.
9.Result