Advertisement
Automake

ProgramaParaConverterDolarEmReal

Sep 4th, 2019
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.  
  2.     #include <stdio.h>
  3.  
  4.     int main(void)
  5.     {
  6.        float dolares;
  7.        float reais;
  8.         float converter;
  9.        
  10.         printf("O digite o valor do dolar: ");
  11.         scanf("%f",&dolares);
  12.         printf("O digite o valor do real:");
  13.         scanf("%f",&reais);
  14.         converter=dolares*reais/24;
  15.        
  16.         printf("%.1f * %.1f/31 = %.2f",dolares,reais,converter);
  17.          
  18.        
  19.      
  20.  
  21.  
  22.        
  23.      return(0);
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement