Reading numbers & finding total of given numbers



            main()  
            {    
                int n = 1, total = 0, no;  
                clrscr();  
            
                while (n <= 10)  
                {  
                    printf("\n Enter the Number: ");  
                    scanf("%d", &no);  
                    total = total + no;  
                    n = n + 1;  
                }  
            
                printf("\n Total = %d", total);  
            
                getch();  
            }  
            
            

Output: