For Loop Practice
Example from the Previous Lesson
main.c
1234567891011121314#include <stdio.h> int main() { int array[] = { 3, 6, 2, 134, 45, 2, 564, 8, 3, 531 }; for (int i = 0; i < 10; i++) { printf("Index of element: %d\tValue of element: %d\n", i, array[i]); } return 0; }
Tehtävä
Swipe to start coding
Use the for
loop to display numbers from 10 down to 0 on the screen.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 4. Luku 7
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 2.63Awesome!
Completion rate improved to 2.63
For Loop Practice
Example from the Previous Lesson
main.c
1234567891011121314#include <stdio.h> int main() { int array[] = { 3, 6, 2, 134, 45, 2, 564, 8, 3, 531 }; for (int i = 0; i < 10; i++) { printf("Index of element: %d\tValue of element: %d\n", i, array[i]); } return 0; }
Tehtävä
Swipe to start coding
Use the for
loop to display numbers from 10 down to 0 on the screen.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 4. Luku 7
single
Awesome!
Completion rate improved to 2.63
For Loop Practice
Pyyhkäise näyttääksesi valikon
Example from the Previous Lesson
main.c
1234567891011121314#include <stdio.h> int main() { int array[] = { 3, 6, 2, 134, 45, 2, 564, 8, 3, 531 }; for (int i = 0; i < 10; i++) { printf("Index of element: %d\tValue of element: %d\n", i, array[i]); } return 0; }
Tehtävä
Swipe to start coding
Use the for
loop to display numbers from 10 down to 0 on the screen.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!