Hi
I want to read a two huge integer input from user & wanted to display output on the screen
can any one help me ?

eg :

int a=8132123781237;
int b=1237829789;
result = a *b ;

print(result);


????

Recommended Answers

All 3 Replies

You'll need 64-bits integers for that. Depends on your compiler (afaik) if it supports it. Look it up. If your compiler supports a bit of C99, you should be able to do:

unsigned long long int b = 8132123781237;

Read them as a string , put the result of multiplication in a link list.

Be a part of the DaniWeb community

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