Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to input long integer in c language ~! You'd better give me an example, because I always benefit from my input.
How to input long integer in c language ~! You'd better give me an example, because I always benefit from my input.
Long integers can save a lot of money, but they are still limited. If you lose too much, it will definitely overflow (hehe)

Here is an example.

# include & ltstdio.h & gt

void main()

{

long int a;

scanf( "%ld ",& ampa);

printf( "%ld ",a);

}