Hi
I have written my first, basic, meaninglyfull program. I feel i have done everything to it, that i can do in its current state. I would really wish to transfrom it into a win32 apllication with buttons for numbers and a screen for the calcultor for the letters to come up. Could someone help me (not write the program for me - i am here to learn) here is the code if it helps:
Thanks in advance!Code:#include <stdio.h>
#include <stdlib.h>
main ()
{
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
printf("What would you like to do?\n1=Add\n2=Subtract\n3=Multiply\n4=Divide");
scanf("%d",&a);
if(a==1)
{printf("What is the first number you would like to add?");
scanf("%d",&b);
printf("What is the second number you would like to add?");
scanf("%d",&c);
d=b+c ;
printf("Your number is %d",d);
scanf("%d");}
if(a==2)
{printf("What is the first number you would like to subtract?");
scanf("%d",&e);
printf("What is the second number you would like to subtract?");
scanf("%d",&f);
g=e-f;
printf("Your number is %d",g);
scanf("%d");}
if(a==3)
{printf("What is the first number you would like to multiply?");
scanf("%d",&e);
printf("What is the second number you would like to multiply?");
scanf("%d",&f);
g=e*f;
printf("Your number is %d",g);
scanf("%d");}
if(a==4)
{printf("What is the first number you would like to divide?");
scanf("%d",&e);
printf("What is the second number you would like to divide?");
scanf("%d",&f);
g=e/f;
printf("Your number is %d\n",g);
scanf("%d");}
return 0;
}