After running my code it spits out long numbers.Im new to C so im not sure what I
am doing wrong.
Code:
#include <stdio.h>
int main(void)
{
int x,remainder;
float y,sum,product,quotient, expression;
printf("Enter an integer> "); //calling for an integer value
scanf("%d", &x);
printf("Enter a real number> "); //calling for a real number
scanf("%f",&y);
x=x;
y=y;
sum=x+y;
product=x*y;
quotient=x/y;
remainder=x/7
expression=(2*x)+(8y/7);
printf("_____________________________\n");
printf("x value: %d\n", x); //prints x value
printf("y value: %f\n", y); //prints y value
printf("%f=%d+%f\n", sum); //prints sum
printf("%d*%f=%f\n", product); //prints product
printf("%d/%f=%f\n", quotient); //prints quotient
printf("%d/7\n",remainder); //prints remainder
printf("(2*%d)+(8*%f/7)\n",expression); //prints expression
printf("_____________________________\n");
return(0);
}