i have 2 write a program that read a long number up 2 10 digits.
when i made it int , the compiler made error, then i made it double,

the program is ok and calculate everthing ok, but when i need 2 print this number again it is correct


ex. the read no. 4235403239
and the printed no.
4,24E+09
how can i made it read and write this long int.

:sad: :sad: :sad:

Use unsigned long int .

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.