2
I have the following code :
setlocale(LC_ALL,"portuguese");
int numeros[5];
int media;
for(int i = 0; i < 5; i++) {
printf("Digite um número : ");
scanf("%d", &numeros[i]);
}
media = numeros[0] + numeros[1] + numeros[2] + numeros[3] + numeros[4];
printf("\nMedia : %d \n\n", media);
printf("Número 1 : %d \n", numeros[0]);
printf("Número 2 : %d \n", numeros[1]);
printf("Número 3 : %d \n", numeros[2]);
printf("Número 4 : %d \n", numeros[3]);
printf("Número 5 : %d \n", numeros[4]);
I need to pass this code to Pseudocode, but I can’t remember how to correctly represent the for
.
for..................
– MagicHat
If it is in this format, already has a repeat loop pseudocode in the first example.
– Woss