12.c++ program to print numbers from 1 to 10 using for loop
//C++ program to print numbers from 1 to 10
INPUT:
#include<iostream>
using namespace std;
int main()
{
int i;
for(i=1;i<=10;i++)
{
cout<<i<<endl;
}
return 0;
}
OUTPUT:
//C++ program to print numbers from 1 to 10
INPUT:
#include<iostream>
using namespace std;
int main()
{
int i;
for(i=1;i<=10;i++)
{
cout<<i<<endl;
}
return 0;
}
OUTPUT:
Comments
Post a Comment