Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- int main() {
- int i,j,n,k,awal,nilai,nilai2;
- //system("clear");
- system("figlet IndoXploit");
- cout << "first: ";
- cin >> awal;
- cout << "rows: ";
- cin >> nilai;
- n = nilai + awal;
- cout << "cols: ";
- cin >> nilai2;
- k = nilai2 - 1;
- cout << "\n";
- for(i = awal; i < n; ++i) {
- cout << i - (awal - 1) << " -> " << i << " ";
- for(j = 1; j <= k; ++j) {
- cout << i + j << " ";
- }
- cout << endl;
- }
- }
Add Comment
Please, Sign In to add comment