Advertisement
AnandaVieira

Aprendendo Algoritmo 10

Feb 23rd, 2021 (edited)
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ScriptAlgoritmo
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             /* 10 – Elabore um algoritmo que calcule a área da superfície da figura abaixo:*/
  10.  
  11.             Console.WriteLine("Entre com a base: ");
  12.             float bas = float.Parse(Console.ReadLine());
  13.  
  14.             Console.WriteLine("Entre com a altura: ");
  15.             float alt = float.Parse(Console.ReadLine());
  16.            
  17.             Console.WriteLine("A superfície do retângulo é de: " + bas * alt);
  18.  
  19.            
  20.         }
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement