#include <iostream>
using namespace std;
int main() {
int a = 1, b = 5;
cout << "----------\n";
cout << ("a\tb\n");
cout << "----------\n";
while (a <= 5) {
cout << a << "\t" << b << endl;
a++;
b--;
}
cout << "----------\n";
}
Comments
Leave a comment