Advertisement
savovaap_

From BGN to USD, EUR, GBP

Mar 29th, 2023 (edited)
585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     float BGN, USD, EUR, GBP;
  6.  
  7.     printf("Enter amount in BGN - ");
  8.     scanf("%f", &BGN);
  9.  
  10.     USD = BGN * 0.55;
  11.     printf("The amount in USD - %0.2f\n", USD);
  12.  
  13.     EUR = BGN * 0.51;
  14.     printf("The amount in EUR - %0.2f\n", EUR);
  15.  
  16.     GBP = BGN * 0.45;
  17.     printf("The amount in GBP - %0.2f\n", GBP);
  18.  
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement