Computer Science, asked by blackspearrow7347, 9 months ago

Write a program to print numbers from 1 to 10 in a single row with one tab space.

Answers

Answered by srajfaroquee
9

Answer:

Note: I am using C++ programming language.

Code:

#include<iostream>

using namespace std ;

int main ( ) {

for( int i = 1; i <=10 ; i++  ){

cout<<i <<"      " ;

}

return 0;

}

If you have doubt then let me know and I will try to clarify your doubts.

Please follow me and mark this ans as Branliest answer.Thank you!

Answered by dip4727
0

To print the numbers from 1 to 10,

We will declare a variable for loop counter (number).

We will check the condition whether loop counter is less than or equal to 10, if condition is true numbers will be printed.

If condition is false – loop will be terminated.

Similar questions