using System;
using static System.Console ;
public class Test
{
public static void Main( )
{
int [ ] atividade = new int [ 6 ] ;
string numeros = "" , tipo = "" ;
for ( int i = 1 ; i < 6 ; i++ )
{
WriteLine( "Insira o " + i + "° numero: " ) ;
atividade[ i] = Int32.Parse ( Console.ReadLine ( ) ) ;
tipo += atividade[ i] % 2 == 1 ? "impar, " : "par, " ;
numeros += atividade[ i] + ", " ;
}
Clear( ) ;
Write( $"Os seguintes numeros foram digitados: \n {numeros}\n {tipo}" ) ;
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBzdGF0aWMgU3lzdGVtLkNvbnNvbGU7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CglpbnRbXSBhdGl2aWRhZGUgPSBuZXcgaW50WzZdOwogICAgc3RyaW5nIG51bWVyb3MgPSAiIiwgdGlwbyA9ICIiOwogICAgZm9yIChpbnQgaSA9IDE7IGkgPCA2OyBpKyspCiAgICB7CiAgICAgICAgV3JpdGVMaW5lKCJJbnNpcmEgbyAiICsgaSArICLCsCBudW1lcm86ICIpOwogICAgICAgIGF0aXZpZGFkZVtpXSA9IEludDMyLlBhcnNlKENvbnNvbGUuUmVhZExpbmUoKSk7CiAgICAgICAgdGlwbyArPSBhdGl2aWRhZGVbaV0gJSAyID09IDEgPyAiaW1wYXIsICIgOiAicGFyLCAiOwogICAgICAgIG51bWVyb3MgKz0gYXRpdmlkYWRlW2ldICsgIiwgIjsKICAgIH0KICAgIENsZWFyKCk7CiAgICBXcml0ZSgkIk9zIHNlZ3VpbnRlcyBudW1lcm9zIGZvcmFtIGRpZ2l0YWRvczogXG57bnVtZXJvc31cbnt0aXBvfSIpOwoJfQp9
stdout
Insira o 1° numero:
Insira o 2° numero:
Insira o 3° numero:
Insira o 4° numero:
Insira o 5° numero:
Os seguintes numeros foram digitados:
10, 3, 6, 4, 5,
par, impar, par, par, impar,