How to write a C Program to print table vertically in C Programming Language ?
Solution:
#include<stdio.h> #include<conio.h> void main() { int i,j,a,result=0; clrscr(); printf("Enter the number up to which you want to print table==>"); scanf("%d",&a); printf("Table till the %d is===>\n",a); for(i=1;i<=10;i++) { for(j=1;j<=a;j++) { result=i*j; printf("%d\t",result); } printf("\n"); } getch(); }
OUTPUT :
Enter the number up to which you want to print table==>5
Table till the 5 is===>
1 2 3 4 5
2 4 6 8 10
3 6 9 12 15
4 8 12 16 20
5 10 15 20 25
6 12 18 24 30
7 14 21 28 35
8 16 24 32 40
9 18 27 36 45
10 20 30 40 50
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 Table Horizontally
- 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
- 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 Print Table Horizontally
- 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 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
Vertical