Print Number 1 To 10 Using Do while loop



            main()  
            {  
                int k = 1;  
            
                do  
                {  
                    printf("\n %d", k);  
                    k = k + 1;  
                }  
                while(k <= 10);  
            
                getch();  
            }  
            
            

Output: