#include
using std::cout;
using std::cin;
using std::endl; // if you havent seen this before it justs ends the line
int main()
{
int A;
A=1 ; //just making the variable A which is a number to 1
while (A<=30) //while A lesser or equal to 30 (start)
{
cout << A << endl; // print A
A++; // A + 1
} // (end) the loop just prints A and adds 1 to it prints A again until 30
system("pause");
return 0;
}
No comments:
Post a Comment