#include <iostream> //including the iostream library
using namespace std; //using namespace so you dont have to type std:: e.g. std::cout<<
int main() //main function starts here
{
//this is where all your code goes
int number; //creating a variable number with the type integer
cout << "Enter a number: "; //this is outputting text to the console window
cin >> number; //this gives number the value that is typed in to the console by the user
while(number >= 1) //while loop that checks if number is bigger than 1 if its true than the following thing will be done
{
cout << number << " "; //this line is outputting the value of number and " "
number--; //the value of number gets decremented by 1 until number reaches 0 than the loop-statement is false and the program ends
}
return 0;
}