C++ Program to print first 50 natural numbers

C++ is a high level programming language. This program is using to print first 50 natural numbers using C++ Language. In C++ language cout function is used to print output in a screen.

Program:

#include <iostream>
using namespace std;

int main()
{
    int i;   
    cout<<"The first 50 natural numbers are: \n"; 
    for (i=1;i<=50;i++) 
	{ 
    cout<<i<<" "; 
    } 
}
 

Khubab Hamza

Read Previous

C++ Program to print first 10 natural numbers

Read Next

C++ Program to print first 100 natural numbers

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular