hi, every1, my name is ShadeS, i'm new here and this is my first post.. hope that we'll get along with each other soon.. thx...
uhmm.. i made a calculator program in c, but there's something wrong.. here's the code:
..i dnt know exactly what's wrong with it, but it seems that im using the printf() and scanf() functions incorrectly.. this is jus a basic approach, so yeah, i'm a beginner... if any1 would post a complete code for a simple/basic calculator, that is, a calculator that would perform simple mathematical functions such as addition, subtraction, multiplication, and division... i would really appreciate it.. thanks in advance for helping... peace out, yo... -_+Code:#include<stdio.h> main() { int num1, num2, num3; clrscr(); num1 = 0; num2 = 0; num3 = num1 + num2; printf("Enter number: "); scanf("%d", &num1); printf("\nEnter another number: "); scanf("%d", &num2); printf("\n\nThe answer is: %d", &num3); getch(); }![]()



LinkBack URL
About LinkBacks



