Page not loading? Try clicking here.
Placeholder

#149

Loop - Formative Assessment 10 1s 8MB

Problems

Write a program that inputs a natural number n and outputs a number of size nxn separated by spaces, as shown in the "Example Output." Output only odd numbers less than 10.

NOTE: Numbers are separated by spaces, but there are no blank lines between them.


Example #1

3
1 3 5

7 9 1
3 5 7

Example #2

6
1 3 5 7 9 1 
3 5 7 9 1 3
5 7 9 1 3 5
7 9 1 3 5 7
9 1 3 5 7 9
1 3 5 7 9 1

Source

자기주도C언어프로그래밍

You must sign in to write code.