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:-
Comments
Post a Comment