school/cpp/midterm/main.cpp
2021-03-10 15:30:40 -05:00

40 lines
595 B
C++

#include <iostream>
using namespace std;
int main() {
int num;
int curr;
int i;
int sum, currValue, x;
// string input;
// string input2;
//cin >> input;
//getline(cin,input2);
//getline(cin,input2);
//cout << input << " " << input2 << endl;
// for (int i=0; i < 100; i++){
// cout << i + 1 << endl;
// }
//cin >> num;
//for (i = 0; i < num; ++i) {
// cin >> curr;
// cout << curr;
//}
//cin >> x;
/*sum = 0;
for (i = 0; i < x; ++i) {
cin >> currValue;
sum += currValue;
}
cout << sum << endl;
*/
x = 18;
while (x>0){
cout << x << " ";
x = x/3;
}
return 0;
}