RRick,
I totally agree with you except that the programming exercise specifically asks to use E or e as the break point....
User Profile
Collapse
-
Savage the only problem with Sicarie's answer is that scanf automatically seems to continue to the next line when user inputs his value. I know how to make the printf print on the same line before the user input but i want to printf on the same line after the user input. Also on storing number in a char array can you give me a sample code on how i would than do the arithmetic operation using that char array since the user inputed numbers are stored...Leave a comment:
-
Savage,
My problem is both. I want the program to exit when i type 0e and also i want to be able to output with printf on the same line where i input with scanf.
thanks
shawn...Leave a comment:
-
Formatting C output
Hi all,
This program is an easy "printing" Calculator... the problem i am having is that when I type in "0e" or "0E" for the program to exit it thinks i am typing in an exponent value and does not exit unless i type in "0ee" or "0EE". My question is how do i change this code around so when i type in "0e" or "0E" it exits the program.
Here is the code:... -
Can't get this to work in Visual Studio 2005
Hi,
I am learning C using VS2005 and I can't get this code to work. It is out of the book but it does not compile and run. What am i doing wrong?
...Code:#include <stdio.h> int main (void) { int integerVar = 100; float floatingVar = 331.79; double doubleVar = 8.44e+11; char charVar = 'W'; _Bool boolVar = 0;
No activity results to display
Show More
Leave a comment: