Hello,

Para realizar o cadastro, você pode preencher o formulário ou optar por uma das opções de acesso rápido disponíveis.

Welcome Back,

Por favor, insira suas informações de acesso para entrar ou escolha uma das opções de acesso rápido disponíveis.

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Captcha Click on image to update the captcha.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

PergunteAqui Latest Questions

  • 0
Anônimo(a)

Area triangulo em C#?

queria saber os codigos certinhos para mim calcular a area de um triangulo..
Começa assim: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace areatriangulo
{
class Program
{
static void Main(string[] args)
{

You must login to add an answer.

1 Answer

  1. using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace areatriangulo
    {
    class Program
    {
    static int AreaTriangulo(int base, int altura)
    {
    int area = base*altura/2;
    return area;
    }
    static void Main(string[] args)
    {
    int area = AreaTriangulo(2,3);
    Console.WriteLine(“A área será: {0}”, area );
    }

    }

Related Questions