Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Writing Style and Format

Answered: 1 week ago

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago