TÓPICO

looping infinito - c#

RadmilaTADS perguntou 5 years ago

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

namespace intervalo_2 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]);

        do
        {
            if (a > b) Console.WriteLine("Decrescente");
            else Console.WriteLine("Crescente");
        } while (a != b);

        Console.ReadKey();

    }
}

}

Este tópico ainda não foi respondido. Seja o primeiro!

Lembre de não publicar soluções. Sua publicação pode ser revisada por nossos moderadores.