#include <iostream> using namespace std; int main() { int n,num=1; int a[128]={0}; cin >> n; for (int i = 1; i <= n; i++) { int sum = 0, flag = 0; flag = i; if (i < 10) { cout<<i<<endl; } else ...