Pages

Thursday, 25 January 2018

While Loop in C Programming Language

#include <stdio.h>

int main() {
    int array[] = {1, 7, 4, 5, 9, 3, 5, 11, 6, 3, 4};
    int i = 0;

    while (i < 10) {
       
        printf("%d\n", array[i]);
        i++;
    }

    return 0;

}