Generation

generate functionTue, 02 May 2023

Hacer un programa que lea 5 números en un arreglo multiplicado por 2 y muestre el segundo arreglo

int main() { int lista1[5], lista2[5], i; for (i=0; i<5; i++) { scanf("%d", &lista1[i]); lista2[i]=lista1[i]*2; } for (i=0; i<5; i++) { printf("%d\n", lista2[i]); } return 0; }

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