How to use% in Portugol [closed]

2

I have the following question:

  

Write an algorithm that calculates a worker's salary. The user will be asked for the value of the hour worked, number of hours and the % discount of the INSS. At the end, print the worker's net salary.

    
asked by anonymous 31.05.2017 / 06:38

2 answers

3

In any mathematical calculation to use the "percentage" just follow the logic of Multiply the desired value by the number of the percentage divided by 100.

Example: 15% of 200.00: 200 * (15 / 100) 200 * 0,15 30,00

Can be applied to any language.

    
31.05.2017 / 14:12
3

Same as any other language. Alias same in mathematics.

liquido <- valorTotal * (100 - descontoInss) / 100
    
31.05.2017 / 07:18