#include <iostream>
using namespace std;
void main()
{
int i;
cout<<"The first 10 natural number is:\n";
for (i=1;i<=10;i++)
{
cout<<i<<endl;
}
system("pause");
}
using namespace std;
void main()
{
int i;
cout<<"The first 10 natural number is:\n";
for (i=1;i<=10;i++)
{
cout<<i<<endl;
}
system("pause");
}
C++ program to display the first 10 natural numbers
Reviewed by Unknown
on
May 18, 2017
Rating:
No comments: