fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. int valorUni = 8;
  6. int valorTotal = 116;
  7. double result = ((double)valorUni / valorTotal) * 100;
  8. WriteLine(result);
  9. }
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/341971/101
Success #stdin #stdout 0.02s 16132KB
stdin
Standard input is empty
stdout
6.89655172413793