gmansano

Atividade 3 - Exercício 4 [ConversaoDeUnidadesDeVolume.cs]

Sep 1st, 2020
1,654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Atividade3Ex4
  4. {
  5.     public class ConversaoDeUnidadesDeVolume
  6.     {
  7.         public static float MetrosCubicoEmLitros(float qnt_metros)
  8.         {
  9.             float litros = qnt_metros * 1000;
  10.             return litros;
  11.         }
  12.         public static float MetrosCubicosEmPesCubicos(float qnt_metros)
  13.         {
  14.             float pes_cubicos = qnt_metros * 35.315f;
  15.             return pes_cubicos;
  16.         }
  17.         public static float MetrosCubicosEmCmCubico(float qnt_metros)
  18.         {
  19.             float cm_cubico = qnt_metros * 1000000f;
  20.             return cm_cubico;
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment