Drsoccerball
Well-Known Member
- Joined
- May 28, 2014
- Messages
- 3,650
- Gender
- Undisclosed
- HSC
- 2015
Hey guys... I've noticed there hasn't really been any code type threads. So I've decided to make a code thread to post and solve problems.
RULES:
1. Try to solve all remaining problems before posting a new one.
2. Try sticking with common languages such as c, java etc... ( So everyone can participate).
3. Make your questions clear an concise.
4. Attach images if needed.
5. DO NOT post assignments looking for solutions.
6. Try always leaving an active question after you solve someone elses.
7. Label questions in numerical order.
With all that down let's start with something relatively easy:
Question 1 : Write a C program (or whatever language you use) that takes a single integer as argument and prints out a letter F of size n using * characters in EXACTLY the format shown below. You should also print error messages if there is invalid input.
Example:
./letterF 4
* * * *
*
*
* * * *
*
*
./letterF 5
* * * * *
*
*
* * * * *
*
*
*
./letterF 6
* * * * * *
*
*
*
* * * * * *
*
*
*
Let the games begin.
RULES:
1. Try to solve all remaining problems before posting a new one.
2. Try sticking with common languages such as c, java etc... ( So everyone can participate).
3. Make your questions clear an concise.
4. Attach images if needed.
5. DO NOT post assignments looking for solutions.
6. Try always leaving an active question after you solve someone elses.
7. Label questions in numerical order.
With all that down let's start with something relatively easy:
Question 1 : Write a C program (or whatever language you use) that takes a single integer as argument and prints out a letter F of size n using * characters in EXACTLY the format shown below. You should also print error messages if there is invalid input.
Example:
./letterF 4
* * * *
*
*
* * * *
*
*
./letterF 5
* * * * *
*
*
* * * * *
*
*
*
./letterF 6
* * * * * *
*
*
*
* * * * * *
*
*
*
Let the games begin.
Last edited: