How to write a C Program To Print Table Horizontally in C Programming Language ?
Solution For C Program :
/*C Program To Print Table Horizontally.*/
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,num;
clrscr();
printf("Enter the no up to which you want table==>");
scanf("%d",&num);
for(i=1;i<=num;i++)
{
for(j=1;j<=10;j++)
{
printf("%d\t",i*j);
}
printf("\n");
}
getch();
}
OUTPUT :
Enter the no up to which you want table==>5
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
4 8 12 16 20 24 28 32 36 40
5 10 15 20 25 30 35 40 45 50
You may also learn these C Program/Code :
C Program To Swap Two Numbers Without Using Third Variable
Learn More :
print
- PRINT PRIME NUMBERS BETWEEN 1-300 USING BREAK AND CONTINUE IN C
- Write a c program to print Pascal triangle.
- C or C++ Program To Print Prime Number
- C Program print fill zero & mod/div
- C Program to printf & scanf Example
- C Program to Print a String Without Use Semicolon.
- C Program To Input & Print More Than One Words In Single Line
- C Program To Print Alphabets Like {Aa Bb Cc...}
- C Program To Print Alphabets Like {Az By Cx...}
- C Program To Print Lines Of A Paragraph Having More Than 15 Characters
- C Program To Print Prime Numbers Upto The Number You Want
- C Program To Print String In Formatted Output Form
- C Program To Print Sum Of n Digit Number
- C Program To Print Tridiagonal Matrix
- C Program To Print Text Into Uppercase
- Printing ASCII Table with Numbers and corresponding characters
- C Program to print all prime numbers from 1 to 300.
- C program that lets the user choose if he wants to add a item to the shopping list or print it out
- C Program to print table vertically
- Loudness Program: Gets loudness level from user; chooses a response And prints it using logical and operative statements
- C program that receives 10 float numbers from the console and sort them in non-ascending order, and prints the result
- Function should print the cartesian coordinates of the struct argument
- C Program Read a char & print next char ( file to file )
- Primul meu program in C Program
Table
- C Program Array NxM Elements Geometric/Arithmetic
- C Program To Generate Multiplication Table
- Printing ASCII Table with Numbers and corresponding characters
- C program calculates a given function in range given by user, stores the data in arrays and displays the answer in a table.
- C Program to print table vertically
- C Program contains all the functions that interact directly with the routing table, as well as the main entry method for routing
- C Program Contains all the Functions that interact directly with routing table
Horizontal