SHOW:
|
|
- or go back to the newest paste.
1 | Hybrid - OGU | |
2 | - | https://ogusers.com/Hybrid |
2 | + | https://ogusers.com/Hybrid |
3 | #include <iostream> | |
4 | using namespace std; | |
5 | int main() | |
6 | { | |
7 | int a,b,c,d; | |
8 | cout<<"Masukkan nilai a : "<<endl; | |
9 | cin>>a; | |
10 | cout<<"Masukkan nilai b : "<<endl; | |
11 | cin>>b; | |
12 | cout<<"Masukkan nilai c : "<<endl; | |
13 | cin>>c; | |
14 | for(a;a<b;a++) | |
15 | cout<<"nilai a adalah : "<<a<<endl; | |
16 | do{c=c+2; cout<<"Nilai c adalah : "<<c<<endl; | |
17 | if(c=0) | |
18 | {cout<<"Nilai c adalah 10"<<endl; }} | |
19 | ||
20 | while(c<b); | |
21 | cout<<"selesai"; | |
22 | ||
23 | ||
24 | ||
25 | } |