CODE#include
main()
{
double factor;
double resizer;
double final;
int end = 1;
printf("RECIPE RESIZER\n");
printf("Enter the factor:");
scanf("%lf", &factor);
while(end ==1)
{
printf("Enter an amount (or 0 to stop):");
scanf("%lf", &resizer);
if (resizer > 0)
{
final = (factor*resizer);
printf("You should use %.2lf instead\n", &final);
}
else if (resizer ==0)
{
printf("Closing program...\n");
end++;
}
//final = 0;
}
system("pause");
}
http://pastebin.com/9gVE5bXJ
Can someone tell me why it doesn't calculate? >__> I have another program with the same problem
main()
{
double factor;
double resizer;
double final;
int end = 1;
printf("RECIPE RESIZER\n");
printf("Enter the factor:");
scanf("%lf", &factor);
while(end ==1)
{
printf("Enter an amount (or 0 to stop):");
scanf("%lf", &resizer);
if (resizer > 0)
{
final = (factor*resizer);
printf("You should use %.2lf instead\n", &final);
}
else if (resizer ==0)
{
printf("Closing program...\n");
end++;
}
//final = 0;
}
system("pause");
}
http://pastebin.com/9gVE5bXJ
Can someone tell me why it doesn't calculate? >__> I have another program with the same problem