fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int quantidade;
  5. scanf("%d", &quantidade);
  6. printf("Preço: %lf", quantidade * (quantidade < 12 ? 1.3 : 1.0));
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/366396/101
Success #stdin #stdout 0s 9424KB
stdin
10
stdout
Preço: 13.000000