Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For C ++ Coding 1. Write a small program using a loop to output your full name 10 times in separate lines. 2. Write a

For C ++ Coding

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: 3

blur-text-image

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago