Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Is "C For Dummies" any good?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="newby2c, post: 2381535"] [K. G. Suarez] wrote ... Greetings K.G., I'm not sure you were directing your message to me, but I think you were. Anyway, here is some code I wrote with the knowledge gained so far, from "C for Dummies". It is a program that converts U.S. dollars into British pounds. Not bad for a complete newby2c. And I'm only on chapter 9! -------------- begin code ---------------------- /* currency.c */ #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float us=1.00; float total; printf("%50s","Currency Converter\n"); printf("\n"); printf("Enter amount in U.S. currency to convert: "); scanf("%f",&us); total=us*0.586550; printf("\n"); printf("The total amount in British Pounds is %.2f\n",total); system("pause"); return 0; } ----------------- end of code ------------------- I hope this helps you some. Best, newby2c [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Is "C For Dummies" any good?
Top