1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Artyom0805 [142]
3 years ago
14

Write a while loop that prints 1 to user_num. Sample output for the given program: 1 2 3 4

Computers and Technology
2 answers:
Scorpion4ik [409]3 years ago
6 0
Given 1234
i=1
user num=4#assume positive
while (user-num>=i);
print(i)
i+=1
#include <iostream>
using namespace std;
int main()
{int userNum=0;
int i=0;
userNum=4; ##assume positive
i=1;
while (i <=userNum){
cout<<i>>" ";
i=i+1;
cout <<endl;
return0;
}
lina2011 [118]3 years ago
5 0
<h2><u>Answer:</u></h2>

So the given program: 1 2 3 4

i=1

User num=4#assume positive

While (user-num>=i);

print(i)

i+=1

#include <iostream>

using namespace std;

int main()

{int userNum=0;

int i=0;

userNum=4; ##assume positive

i=1;

while (i <=userNum){

cout<<i>>" ";

i=i+1;

cout <<endl;

return0;}



You might be interested in
In the water cycle,lake water will do which of the following first
Agata [3.3K]

What are the following?

5 0
3 years ago
This is really dumb but can someone help me find these memes? I can’t remember what they’re called but I remember how they went
grin007 [14]
Omg I remember those hi at look on google
4 0
3 years ago
Read 2 more answers
My mom and I are moving and we don’t have WiFi for the next week, I want to know if using a using a HOTSPOT WITH UNLIMITED DATA
Svetllana [295]

Answer:

Commercial HotSpots allows you mobility while regular wifi is a cheaper and reliable option while you are stale

Explanation:

8 0
3 years ago
In the ____, or ad hoc, layouts configuration, there is no access point at the center of a cell.
sweet [91]
I have the same test question
6 0
3 years ago
One correct answer is an example of _____________ ______________ _____________ and no single right answer is _______________ ___
dmitriy555 [2]
I'm not really sure! Sorry!!! Hope you find what your looking for!
5 0
2 years ago
Other questions:
  • Which of the following statements about the use of desktop publishing software is true
    10·1 answer
  • The operations planning practice of inputting sales forecasts into computer software that accurately predicts the amount and tim
    6·1 answer
  • Internally, computers are constructed from circuitry that consists of small on/off switches. What is the most basic circuitry-le
    12·1 answer
  • What is the definition of hardware
    5·2 answers
  • PLS HELP!! 50 Points! Will mark correct answer brainliest!!
    11·2 answers
  • Write a program that reads in an integer, and breaks it into a sequence of individual digits. Display each digit on a separate l
    14·1 answer
  • Essay about evolution of media shaped the values and norms of the society
    11·1 answer
  • What is the purpose of the GETPIVOTDATA function?
    13·2 answers
  • How long will my chromebook last if it is at 30 percent
    9·1 answer
  • TO Cloud
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!