Wie kann ich folgendes in C code umsetzen?
Wie komme ich am besten zur Loesung?
Ich muss das folgende in C Code umsetzen:
Declare and initaliaze integer variables evens and offset to zero
Declare a 10-element integer array called array
WHILE array has not been completely filled
Input an integer for the next array element
Increment offset
Set offset to zero
WHILE there are array items left to test
IF array item is even
Increment evens
Increment offset
Display the vallue of evens on the screen
Wie komme ich am besten zur Loesung?
Ich muss das folgende in C Code umsetzen:
Declare and initaliaze integer variables evens and offset to zero
Declare a 10-element integer array called array
WHILE array has not been completely filled
Input an integer for the next array element
Increment offset
Set offset to zero
WHILE there are array items left to test
IF array item is even
Increment evens
Increment offset
Display the vallue of evens on the screen
Zuletzt bearbeitet: