looping infinito - c#

Radmila Gama - INFOWEB CNAT asked 2 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]);

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




This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.