Created
          February 20, 2019 14:37 
        
      - 
      
 - 
        
Save LeonardoPizzoquero/952f88be22c9b99395d946eeab0a280c to your computer and use it in GitHub Desktop.  
    HonestTightAggregators created by LeonardoPizzoqu - https://repl.it/@LeonardoPizzoqu/HonestTightAggregators
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <math.h> | |
| int main(void) { | |
| /*** URI Desafio 1010 ***/ | |
| int cod1, np1, cod2, np2; | |
| float val1, val2, total; | |
| scanf("%d %d %f \n", &cod1, &np1, &val1); | |
| scanf("%d %d %f \n", &cod2, &np2, &val2); | |
| total = (np1 * val1) + (val2 * np2); | |
| printf("VALOR A PAGAR: R$ %.2f\n", total); | |
| return 0; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment