By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

c programming for converting Rwandese money to dollars

P: 2
converting Rwandese money to dollars using c programming and produce a constant
Mar 12 '17 #1
Share this Question
Share on Google+
2 Replies


dev7060
100+
P: 100
Assuming that you are asking for a simple program, here is the code:

Expand|Select|Wrap|Line Numbers
  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void) {
  6.     float rwandan, dollar;
  7.     printf("Enter money in Rwandan Franc: ");
  8.     scanf("%f", &rwandan);
  9.     dollar=0.0012*rwandan; //Assuming the current rate: 1 Rwandan Franc equals 0.0012 US Dollar (Source: Google)
  10.     printf("Amount in US Dollars is: %f", dollar);
  11.     return EXIT_SUCCESS;
  12. }
  13.  
  14.  
Mar 12 '17 #2

P: 2
tx alot, am gonna try this c programming
Mar 12 '17 #3

Post your reply

Sign in to post your reply or Sign up for a free account.