Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ScriptAlgoritmo
- {
- class Program
- {
- static void Main(string[] args)
- {
- /* 10 – Elabore um algoritmo que calcule a área da superfície da figura abaixo:*/
- Console.WriteLine("Entre com a base: ");
- float bas = float.Parse(Console.ReadLine());
- Console.WriteLine("Entre com a altura: ");
- float alt = float.Parse(Console.ReadLine());
- Console.WriteLine("A superfície do retângulo é de: " + bas * alt);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement