Вводить последовательность до тех пор, пока не встретятся 3 подряд идущих положительных числа. Тогда прервать ввод и сообщить, сколько во введенной последовательности было: а) всего чисел, б) положительных чисел, в) отрицательных чисел. В консоле если что Просто ебаный ступр, хотя бы пример или намекните как эту херню сделать, буду благодарен
id556215352, using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Helpers { class Program { static void Main(string[] args) { int count = 0; int neg = 0; int pos = 0; int total = 0; do { Console.WriteLine("Input the number"); int N = Convert.ToInt32(Console.ReadLine()); if (N > 0) { count++; pos++; total++; } else if (N == 0) { count = 0; total++; } else { count = 0; neg++; total++; } } while (count < 3); Console.WriteLine($"Total: {total}, pos {pos}, neg {neg}"); Console.ReadKey(); } } } Код using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Helpers { class Program { static void Main(string[] args) { int count = 0; int neg = 0; int pos = 0; int total = 0; do { Console.WriteLine("Input the number"); int N = Convert.ToInt32(Console.ReadLine()); if (N > 0) { count++; pos++; total++; } else if (N == 0) { count = 0; total++; } else { count = 0; neg++; total++; } } while (count < 3); Console.WriteLine($"Total: {total}, pos {pos}, neg {neg}"); Console.ReadKey(); } } }