Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux

You are here : Home » Solved Programs in C » C program to print 1 to 100 in tabular format

C program to print 1 to 100 in tabular format

#include <stdio.h>

int main()
{
int columns, rows, number;
rows =1;

do{
    columns=0;
    do{
        printf("%d\t ", columns*10+rows);
        
    }while(columns++ <9);
    printf("\n");
    
}while(rows++ <10);

    return 0;
}

C program to print 1 to 100 in tabular format