SHOW:
|
|
- or go back to the newest paste.
1 | #include <iostream> | |
2 | ||
3 | #include <conio.h> | |
4 | int main () | |
5 | { | |
6 | //cout<<" Hello World "; | |
7 | - | int x; |
7 | + | int a,b; |
8 | - | x = 10; //silakan dipikirkan cara input x memakai cin |
8 | + | a = 10; //silakan dipikirkan cara input memakai cin |
9 | b = 5; //silakan dipikirkan cara input memakai cin | |
10 | - | x = 2 * x; |
10 | + | |
11 | - | x = x + 7; |
11 | + | if(A>B){ |
12 | - | x = 5 * x; |
12 | + | count <<"bla2"; |
13 | - | x = x + 5; |
13 | + | } |
14 | - | x = x + 10; |
14 | + | else{ |
15 | count <<"bla2"; | |
16 | - | count <<"x ="; |
16 | + | } |
17 | - | count << x; |
17 | + | |
18 | getch(); | |
19 | } |