mga master I have a problem with my Dev C++. Ig pa-RUN na nako sa program then input sa integers ky dili mo display ang output mo out dayon sya.
mao ni akoang Code:
#include <stdio.h>
main()
{
int first, second, add, subtract, multiply;
float divide;
char hold;
printf("Enter two integers\n");
scanf("%d%d", &first, &second);
add = first + second;
subtract = first - second;
multiply = first * second;
divide = first / (float)second; //typecasting
printf("Sum = %d\n",add);
printf("Difference = %d\n",subtract);
printf("Multiplication = %d\n",multiply);
printf("Division = %.2f\n",divide);
getchar();
return 0;
}
Naay kuwang sa code? I search sa internet but get nothing.
Thanks sa mo Reply! ^_^