SO i'm trying to write this program for my class have no idea what to do. It's a currency converter. this I what I have so far but when I type a number my math is not being done can someone please help me thank you.
#include <stdio.h> //standard input/ouput library
int main( )
{
float Euro;
float Dollar;
Dollar = 1.00;
Euro = 0.93;
char c;
c = 1.00*0.93;
printf("Enter Amount to Convert:\n",'c');
scanf("%f,&Dollar");
Dollar = 'c';
cin and cout are C++. printf and scanf are C.
however, printf is much, much easier to format for simple programs, esp if dealing with floating point. I use both, depending on what I am doing.
b = 0.93.
you perhaps meant to write out b*c AFTER the scanf statement.
Your code reads in c, then writes out b, and there is no computation between...