Hi im new to the forum and a newbie in C programming too
I need to ask how can i print large amount of number for example,
Code:
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>d
#include<math.h>
#include<limits.h> /* lol i tried so many header files already. believe me :S */
int main(void)
{
int apple,mango,result;
apple = 36000;
mango = 2;
result = apple*mango;
printf ("result : %d\n",result);
return 0;
}
the result should be printed out as '72000'.. but what I'd been getting is '6464'.. I tried googling but i couldn't find the solution. which is strange. I heard about integer could only bear numbers from -36000+ up to 36000+ (sorry if i'm wrong).
anyone can help me fix my code? i really need your kind help Thanks