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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!