Question
1. Write a small program using a loop to output your full name 10 times in separate lines. 2. Write a small program to get
1. Write a small program using a loop to output your full name 10 times in separate lines.
2. Write a small program to get input value for a positive integer variable x and then calculate this expression:
((x/3) + (x%3)) * 3
Then out put the result exactly like the following statement where x is the input value and y is the result of the above expression.
((x/3) + (x%3)) * 3 = y
For examples:
If x is 5, the output will be:
((5/3) + (5%3)) * 3 = 9
If x is 8, the output will be:
((8/3) + (8%3)) * 3 = 12
You can combine both of them in one program. You only need to turn in the source code and the run output.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started