- 1 21 Write A C Program That A 5 Reads An Integer X From Keyboard Then Prints Out A Solid Square Of Side X Us 1 (37.27 KiB) Viewed 54 times
1. (21%). Write a C# program that (a) (5%) Reads an integer x from keyboard, then prints out a solid square of side x us
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. (21%). Write a C# program that (a) (5%) Reads an integer x from keyboard, then prints out a solid square of side x us
1. (21%). Write a C# program that (a) (5%) Reads an integer x from keyboard, then prints out a solid square of side x using the character "%" For example, if x = 4, you print out %%%% %%%% %%%% %%%% Test your program using x = 3, x = 5, and one integer x between 10 and 15 picked by you. (b) (7%) Reads an integer x from the keyboard and prints out a hollow square of side x using the character "%" For example, if x = 4, then you print out %%%% % % % % %%%% Test your program using x = 3, x = 5, and one more integer of your choice (c) (9%) Reads an integer x from the keyboard and prints out triangle like below (for the case of x = 5, using nested for loop) Test your program with x = 7 and x = 9.