i cant get this to work rite. i want number1 to = a variable, number2 to = a variable, function to = a variable, and answer to = a variable. can you show me what i did wrong, and fix it.
#include <stdio.h> int main (void) { int answer=z; float number1=w, number2=y; char function=x;
{ printf("CALCULATOR\n"); printf("------------------------------\n \n"); printf("First number\n \n \t - "); scanf("%f)", &number1); printf("\n function, (e.g. +, -, /, *)\n \n \t - "); scanf("%c", &function); printf("Second Number\n \n \t - "); scanf("%f", &number2); answer = w x y = z; printf("%d",z); } scanf("%c"); return 0; }
thanks. and dail, can you explain a little more how to use it. i tried but it still dosent work.
thanks again.
matt wuz here
|