fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. float salario;
  5. printf("informe o salario atual: ");
  6. scanf("%f", &salario);
  7. printf("informe o percentual de reajuste: ");
  8. int percentual;
  9. scanf("%d", &percentual);
  10. printf("o novo salario e:%f\n ", salario + (salario * (percentual / 100.0)));
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/323755/101
Success #stdin #stdout 0s 9424KB
stdin
1000
12
stdout
informe o salario atual: informe o percentual de reajuste: o novo salario e:1120.000000