#include <iostream.h>
#include <iomanip.h>
int main()
{
    
    int zahl=1, spalte=1;
//lottoschein (49 zahlen in 7x7 quadrat)   
    while(zahl<=49)
    {
           while(spalte <= 7)
           {        
                    cout << setw(3) << zahl; 
                    zahl++;
                    spalte++;
           }
           cout << endl;
           spalte=1;
    }
cout << endl;

//alternative mit schleife + if
zahl=1;
spalte=1;
while(zahl<=49)
{
               cout << setw(3) << zahl;
               if(spalte==7)
               {
                            cout << endl;
                            spalte=0;
                            }
               zahl++;
               spalte++;
               }
cout << endl;

//nur mit einer variablen
zahl=1;
spalte=1;
while(zahl<=49)
{
               cout << setw(3) << zahl;
               if((zahl%7)==0) cout << endl;
               zahl++;
               }
cout << "Programmende...";
cin.get (); cin.get();
return(0);    
    }

/*

*/
