Generate multiplication table up to 10 for numbers 1 to 5.

This post content:-
Algorithm
Flowchart
C code
Output
Pdf notes

Algorithm:-
Step 1:- start.
Step 2:- declare variable num.
Step 3:- print the table using for Loop.
As follow:-
for(int j=1;j<=5;j++)
{
for(int i=1;i<=10;i++)
{
    printf("%d * %d = %d\n",j,i,j*i);
}
printf("\n");
}
Step 4:- END.

Flowchart:-
C code:-
Output:-
Try it yourself:-


Comments

Popular posts from this blog

Develop and execute C Program to Add Two Distances given in kilometer-meter Using Structures.

Develop a c program to find the sum of all elements stored in a given array using a pointer.