gmansano

Atividade 3 - Exercicio 2 [Program.cs]

Sep 1st, 2020
1,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Atividade3Ex2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             float bmaior = 15f;
  10.             float bmenor = 5f;
  11.             float h = 8f;
  12.             Console.WriteLine(Matematica.AreaTrapezio(bmaior, bmenor, h));
  13.             Console.WriteLine();
  14.             float n1 = 200f;
  15.             float n1r = 72f;
  16.             float n2 = 500;
  17.             Console.WriteLine(Matematica.RegraDeTres(n1, n1r, n2));
  18.             Console.WriteLine();
  19.             float CatAdj = 3;
  20.             float CatOpost = 4;
  21.             Console.WriteLine(Matematica.Hipotenusa(CatAdj, CatOpost));
  22.             Console.WriteLine();
  23.             float a = 1f;
  24.             float b = -2f;
  25.             float c = 1f;
  26.             for (int index = 0; index < Matematica.Bhaskara(a, b, c).Length; index++)
  27.             {
  28.                 Console.WriteLine(Matematica.Bhaskara(a, b, c)[index]);
  29.             }
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment