I wrote a simple calulator in C, trying to teach myself the language because I'm accustomed to C++, but the program crashes once user inputs the second number for calculation. I'm wondering if there's something wrong with my code (though I can't seem to spot anything) or that Windows 7 doesn't get along with C. Can anyone tell me what's the issue is here?
The code is as follows:
printf("Write something: ");
printf("write something else: ");
geti = geti + geti;
printf("Your sum is %d", geti);