How to write a program to add (2 or many) numbers of length 100?

Use C language and any method.

1 Answer

  • Anonymous
    1 decade ago
    Favorite Answer

    can you be clear with your question. is it that each number is of size 100 or do u want to add 100 numbers.

    if its 100 numbers then this will do good.


    int main(){

    int total=100;

    int a, sum=0;

    for(int i=0; i<total; i++){

    printf("Enter value:");




    printf("Sum = %d", sum);


    if you want you can accept the value for total from the user asking him how many no's is he wanting to enter.

    if you question ment number of 100 digits then plz mail me to so that i can help you out better

    hope it helped u !!!!!!!!!

Still have questions? Get your answers by asking now.