Jump to content

POWERED BY:

silver sanths

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Comum

About silver sanths

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. silver sanths

    Qual e o meu erro no script

    #include <stdio.h> int main() { float valor_produto = 0, valor_pagamento = 0; int troco = 0; troco = valor_pagamento - valor_produto; scanf("%f", &valor_produto); scanf("%f", &valor_pagamento); if (valor_produto < valor_pagamento) { printf("100: %d", troco / 100); printf("\n50: %d", troco % 100 / 50); printf("\n2: %d", troco % 50 / 20); printf("\n10: %d", troco % 20 / 10); printf("\n5: %d", troco % 10 / 5); printf("\n2: %d", troco % 5 / 2); printf("\n1: %d", troco % 2 / 1); } return 1;
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.