#include <iostream>
using namespace std;
int main ()
{
int num = 0;
cout << "Using for loop\n";
for(num = 10; num >= 1; num--)
{
cout << num << "\n";
};
cout << "Using while loop\n";
while(1)
{
cout << ++num << "\n";
if(num >=10)
break;
} while(num < 10);
return 0;
}