1. What numbers will be displayed when code corresponding to the following pseudocode is run?

Set N = 3
For (K=N; K <= 5; K++)
Write N, “ “, K
End For

2. Rewrite the following pseudocode using a For loop instead of the While loop shown as follows:

Set Number = 1
While Number <=10
Input Response
Write Response
Set Number = Number + 1
End While

3. What numbers will be displayed if code corresponding to the following pseudocode is run?

Set Number = 0
While Number < 4
Write Number
Set Number = Number + 1
End While

mike_2000_17 commented: do your homework yourself! +0

No offense, but anyone who knows anything about c or c++ will know all those answers. this isn't a do my homeowrk forum this is a place for discussing problems in what you are doing and geting some advice.

I refer you now to the teachings of tundra010

Here is how to fix your problem:
1) Go to http://www.cplusplus.com/doc/tutorial/
2) Learn C++
3) Do it yourself

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.