char patron10(int m , int n )

char patron10(int m , int n )
        {
            for ( int = 0 ; i < m ; i++)
                cout<< "." ; 
            int a = 0 ;
            while (True)
            {
                cout<< 10*a ;
                if (10*a >= n)
                    break ;
                for ( int i =0 ; i <8 ; i++)
                    cout<< "." ;
            a++ ;


        for ( int = 0 ; i < m ; i++)
            cout<< "." ; 
        int a = 0 ;
        while (True)
        {
            cout<< 10*a ;
            if (10*a >= n)
                break ;
            for ( int i =0 ; i <8 ; i++)
                cout<< "." ;
        a++ ;

Looks incomplete. Missing right }'s maybe more wrong. GIGO?

First, start with define a function in Python. Then look at how a for-loop and while-loop are done. Oh don't forget how to delcare variable as well. Once you got them all, take a look at how to display it on console... Hmm... Writing this reply takes longer than program that code in Python! ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.