Theres an array of strings called Counts Zero One Two Three

There’s an array of strings called Counts = {“Zero”, “One”, “Two”, “Three”, “Four”, “Five”} (you cannot change this array). Using a while loop, write pseudocode that generates the following print out:

0 Five

1 Four

2 Three

3 Two

4 One

5 Zero

BLAST OFF!

Solution

#include<stdio.h>
void main()
{
        char *Counts[] = {\"Zero\", \"One\", \"Two\", \"Three\", \"Four\", \"Five\"};
        int i=0;
        while(i<=5)
        {
                printf(\"%d %s\ \",i,Counts[5-i]);
                i++;
        }
}

There’s an array of strings called Counts = {“Zero”, “One”, “Two”, “Three”, “Four”, “Five”} (you cannot change this array). Using a while loop, write pseudocode

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site