Professional Documents
Culture Documents
00 Diagnostic Exer D
00 Diagnostic Exer D
00 Diagnostic Exer D
1. Vs
Create a program that asks for any integer n, n > 2, and then prints a letter V of height n. The V is
created by printing a series of asterisk in the terminal.
(String multiplication is NOT ALLOWED.)
Input ( N ) : 1
Output : Invalid !
Input ( N ) : 3 Input ( N ) : 9
Output : * * Output : * *
* * * *
** * *
* *
Input ( N ) : 6 * *
Output : * * * *
* * * *
* * * *
* * **
* *
**