Generation

testsSun, 06 Oct 2024

#include <iostream> using namespace std; int main() { int numero,digito,sumapar=0,sumaimpar=0; //pedir al usuario ingresar numeros enteros cout<<"ingresar numeros enteros:"; cin>> numero ; while(numero>=0){ if(digito%2==0){ sumapar+=digito; }else{ sumaimpar+=digito; } //mostrar resultados cout<<"la suma de los numeros pares es:"<<sumapar; cout<<"la suma de los numeros inpares es:"<<sumaimpar; } return 0; }

You can use the following code to get the list of files in the current directory: var files = Directory.GetFiles(@"C:\Users\user\Desktop\test"); You can use the following code to get the list of files in a specific directory: var files = Directory.GetFiles(@"C:\Users\user\Desktop\test", "*.txt"

Want to kickstart your project?Use the new AI Studio to create your code