C - Write program to loop and output

Requirements

Display the values from 11 through 19.

Separate each value by a tab character, \t.

Use the <= sign for the comparison that ends the loop.

Clean up the display by adding a final newline character when the loop is done.

Demo

#include <stdio.h>

int main()/*from w  ww  .j  a  v  a2 s  .c  o  m*/
{
    int count;

    for(count=11; count<=19; count=count+1)
    {
        printf("%d\t",count);
    }
    putchar('\n');
    return(0);
}

Result

Related Exercise