Write a program to print numbers from 1 to 10 in a single row with one tab space.
Answers
Answered by
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
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