#include <stdio.h>
int till=1;
void printTable(int tno, int till){
if(till<=10)
{
printf("%d x %d = %d\n",tno,till,tno*till);
printTable(tno,till+1);
}
}
int main()
{
printTable(2,1);
return 0;
}
Print a Table in C Program
Hey there today we Learn about Table Programming in C without using for() loop. Here an Example for you, It may helps you. Print a Table in C Program
C Program to Generate Multiplication of Table
#include <stdio.h>
int till=1;
void printTable(int tno, int till){
if(till<=10)
{
printf(ā%d x %d = %d\nā,tno,till,tno*till);
printTable(tno,till+1);
}}
int main()
{
printTable(2,1);return 0;
}
Write a C program For Printing Table of Any Number
C program to draw a square using graphics (clickHere)
Table Program in C
Note:- Maybe sometime above code doesnāt get user-friendly output, in codeblock āorā any other EDITOR, All of C & C++ program tested in DOS compiler Turbo C.
Also Read
Types of functions in CĀ Ā Read Here
I hope you will understand better if you study at M.U, in the exam of M.U you know how important this āStack program in cppā . So please donāt forget to give your valuable feedback. Go in the comment section and Give us some feedback about it. stack program in cpp or My website.
Our team check your every Comment per day Because your one feedback helps us in growing Thesmolt
I request you if you have any doubt or question regarding our site, then please donāt hesitate. We always waiting for your Suggestion.
Note:- If you want to Download This articleās in PDF form, then simply go (Top or Bottom of) Right corner and click on the PRINT icon, and itās saved as a PDF ofĀ Stack program in cpp
C Program to Print Table Of Number
For further questions, you can contact us Via mail [email protected]Ā otherwise, Our Help Page and Contact us Page, which is included below. I hope Iāll able to say all the possible ways to reach us. Or Download My Android Application Below Download Button.