Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PROJETIL
- {
- class Program
- {
- private static double Vi;
- static void Main(string[] args)
- {
- /* Declaração de dados */
- double HMax;
- double VI;
- double teta;
- double d = 9.81;
- double sen = 1;
- Console.WriteLine("Informe o ângulo:");
- teta = double.Parse(Console.ReadLine());
- /* Processamento */
- HMax = (Math.Pow(Vi * (Math.Sin(teta)), 2)) / (2 * g);
- /* Saída de dados */
- if (HMax <= d)
- {
- Console.WriteLine("A distância do seu projetil foi de " + d +
- " e a altura máxima foi de " + HMax + " A maior já obtida!");
- }
- else
- {
- Console.WriteLine("Dado desconhecido!");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement