TOPIC
looping infinito - c#
RadmilaTADS asked 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();
}
}
}
This topic has not been answered yet. Be the first!