Kelompok 4-1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Kelompok 4:

- Jonrio Ebenezer Siahaan (132)


- Noel Arizon Panjaitan (057)
- M. Asyraf Rizki (105)
- Divani Modena (027)
- Rafi Fauzan Tsany Lubis (120)
- Jason Sanjaya (066)

1. File Header
#ifndef header.h
#define header.h

#define chuqu cout


#define zuobian <<
#define xindui endl
#define jinru cin
#define cheque >>
#define jian -
#define jia +
#define ci *
#define chu /
#endif

2. File Main
3. #include <iostream>
4. #include "bahasa.h"
5. using namespace std;
6.
7. int sum(int a, int b)
8. {
9. return a jia b;
10. }
11.
12. int difference(int a, int b)
13. {
14. return a jian b;
15. }
16.
17. int product(int a, int b)
18. {
19. return a ci b;
20. }
21.
22. int division(int a, int b)
23. {
24. return a chu b;
25. }
26.
27. int main()
28. {
29. system("cls");
30. int a, b, c, d, e, f;
31.
32. chuqu zuobian "Enter a Number: ";
33. jinru cheque a;
34.
35. chuqu zuobian "Enter another Number: ";
36. jinru cheque b;
37.
38. c = sum(a, b);
39. d = difference(a, b);
40. e = product(a, b);
41. f = division(a, b);
42.
43. chuqu zuobian "The Sum of the Numbers is: " zuobian c zuobian
xindui;
44. chuqu zuobian "The Difference of the Numbers is: " zuobian d
zuobian xindui;
45. chuqu zuobian "The Product of the Numbers is: " zuobian e zuobian
xindui;
46. chuqu zuobian "The Division of the Numbers is: " zuobian f zuobian
xindui;
47.
48. system("pause");
49. return 0;
50. }

You might also like