Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     double GBP, USD;
  5.     int i = 0;
  6.    
  7.     do {
  8.         scanf("%lf",&GBP);
  9.         USD = GBP * 1.58;
  10.         printf("%.2f\t%.2f\n",GBP,USD);
  11.         i++;
  12.     }while(i < 5);
  13.    
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement