Horje
c++ program to print natural numbers from 1 to 10 in reverse order using while loop Code Example
c++ program to print natural numbers from 1 to 10 in reverse order using while loop
#include<iostream>
using namespace std;

int main()
{
	int number;
	
	cout << "\nPlease Enter Maximum Value to print Natural Numbers =  ";
	cin >> number;
	
	int i = number;
	
	cout << "\nList of Natural Numbers from " << number << " to 1 are\n"; 
	while(i >= 1)
  	{
		cout << i <<" ";
		i--;
  	}
		
 	return 0;
}




Cpp

Related
remove element from c++ Code Example remove element from c++ Code Example
Corong_ExerciseNo3(2) Code Example Corong_ExerciseNo3(2) Code Example
(1 & 1) in cpp Code Example (1 & 1) in cpp Code Example
c++ tokenize string Code Example c++ tokenize string Code Example
C++ Quotient and Remainder Code Example C++ Quotient and Remainder Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11