Advertisement
Avdluna

URI 1009

May 17th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5.      char nome[100];
  6.  
  7.   double salario,vendas,x;
  8.  
  9.   scanf("%s %lf %lf", nome, &salario, &vendas);
  10.  
  11.   x = salario + (15*vendas)/100;
  12.  
  13.    printf("TOTAL = R$ %.2f\n",x);
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement