write down the program using for statement?
Answers
Answered by
0
A program for printing numbers from 1 to 10 using the for loop.
for is a iterative statement that is used to print the repeated output according to the condition given in the for loop.
Given below is a program for printing numbers from 1 to 10:
#include<iostream.h>
void main()
{ for (i=1; i<=10; ++i)
{
cout<< i << " ";
}
}
For more related answers, click on the below given link
https://brainly.in/question/35760353
#SPJ3
Similar questions