void main() { int n; cin n; for (int i = 0; i n; ++i) { for (int j = j + 1; j = n; j++) { if (j == i + 1 || j == n - i - 1 || i == 0) { cout j; } else { cout " "; } } cout endl; }}
Not registered? Create an account
Forgot Password?
Already a registered user? Login