using System;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
bool chave = true;
int cPositivos = 0
while (chave){
int numeros = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("digite os numeros");
if(num < 0)
{
chave = false
}
else{
cPositivos++;
}
}
Console.Writeline("numeros positivos: " + cPositivos);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: