David
2011-03-03 13:53:26 UTC
#include
#include
#include
#include
int main() {
float myIntA,myIntB;
printf("Enter a whole number: \n");
scanf("%f*c",&myIntA);
printf("Enter a whole number: \n");
scanf("%f*c",&myIntB);
printf("The sum is: %f \n",myIntA+myIntB);
printf("The difference is: %f \n",myIntA-myIntB);
return 0;
}
Can anyone point out what I'm doing wrong?