Computer Science, asked by naina277678, 5 months ago

Write a c++ program to print number from 1 to 100​

Answers

Answered by pratrawatin
0

Answer:

it will print the numbers 1 to 100

Explanation:

Answered by Anonymous
0

Answer:

Write a C++ program to print a number from 1 to a user entered number. Only accept numbers from 1 to 100; Example: Enter the number: 15 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15.

At first, I thought, maybe it was a guessing game, but it asks to PRINT all the numbers from 1-100. I know I need to use a for loop. Here is what I have so far:

#include <iostream>

#include <cstdlib>

#include <ctime>

{

int num = 15;

for (int i = 0; i < 100; i++)

}

system ("Pause")

Similar questions
Math, 2 months ago