Skip to content

Instantly share code, notes, and snippets.

@LeonardoPizzoquero
Created February 20, 2019 14:36
Show Gist options
  • Save LeonardoPizzoquero/46daefa769ec423fe6031293d3b5a603 to your computer and use it in GitHub Desktop.
Save LeonardoPizzoquero/46daefa769ec423fe6031293d3b5a603 to your computer and use it in GitHub Desktop.
HonestTightAggregators created by LeonardoPizzoqu - https://repl.it/@LeonardoPizzoqu/HonestTightAggregators
#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