WAP to display total of 10 numbers

Defination :: WAP to display total of 10 numbers

Source Code ::

void main()
{
    int no[10],i,tot=0;
    clrscr();

    printf("etner any number:");
    for(i=0;i<=9;i++)
    {
        scanf("%d",&no[i]);
        }
    printf("the tot number is:");
    for(i=0;i<=9;i++)
    {
        tot=tot+no[i];
        }
    printf("the tot is:%d",tot);
    getch();
}
WAP to display total of 10 numbers WAP to display total of 10 numbers Reviewed by Unknown on 21:38 Rating: 5

No comments:

Powered by Blogger.