Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- int main (){
- int a, b, c;
- a=-1;
- cout << "\t\t === Program Bilangan Ganjil Angka 1-20 ===\n"<<endl;
- for (c=1;c<=10;c++)
- {
- b=2+a;
- cout<<b<<" ";
- a=b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment