TO FIND MULTIPLICATION TABLE USING C PROGRAM





1. Multiplication tables in c program
2. Write a c program to print multiplication table
3. Code for multiplication table in c
4. Multiplication table in c language
5. Write a c program to print multiplication table

#include<stdio.h>
int main(){
  int r,i,j,k;
  printf("Enter the number range: ");
  scanf("%d",&r);
  for(i=1;i<=r;i++){
      for(j=1;j<=10;j++)
           printf("%d*%d=%d ",i,j,i*j);
      printf("\n");
  }
  return 0;
}

Sample Output:



Enter the number range: 5

1*1=1 1*2=2 1*3=3 1*4=4 1*5=5 1*6=6 1*7=7 1*8=8 1*9=9 1*10=10

2*1=2 2*2=4 2*3=6 2*4=8 2*5=10 2*6=12 2*7=14 2*8=16 2*9=18 2*10=20
3*1=3 3*2=6 3*3=9 3*4=12 3*5=15 3*6=18 3*7=21 3*8=24 3*9=27 3*10=30
4*1=4 4*2=8 4*3=12 4*4=16 4*5=20 4*6=24 4*7=28 4*8=32 4*9=36 4*10=40
5*1=5 5*2=10 5*3=15 5*4=20 5*5=25 5*6=30 5*7=35 5*8=40 5*9=45 5*10=50





10. Write a c program to add two numbers without using addition operator.
11. Write a c program to subtract two numbers without using subtraction operator.
15. Write a c program to solve quadratic equation.
18. Write a c program which passes structure to function.
28. Write a c program which takes password from user.
29. Write a scanf function in c which accept sentence from user.
30. Write a scanf function in c which accept paragraph from user.

34 comments:

Anonymous said...

thank u so much! I don't know how to present this! thanks! ^.*

Akshar said...

Hey man Thanks a lot. You have helped me for the assignments. May god bless you.

-akshar
(India)

Anonymous said...

THANKS MAN ALOT??????HACKERDOLMA007

Anonymous said...

very useful..!!

Anonymous said...

lovely site mere assignments main kafi help kar rahi hai....
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss
thankssssss................:-)

Anonymous said...

thank.....uuuuu...soooooooo........much..........

Anonymous said...

thank you

Anonymous said...

same for me.......love this site

Heenariyas said...

thank u very much......it's vry useful 4 me....

محمود السوري said...

thank you so much

q: can i print the multiplication table for the number i print from 1 to 10 without the rest

nawid ghaljai said...

very useful site....thank you guys and best of luck in the future with more programs .. ;)

Anonymous said...

thank you so much... can you help me to find number of prime numbers upto n terms

Anonymous said...

Thank you very Much, Its very helpful...

aditya parmeshwaran said...

Thank u... very helpful for my exam...

Anonymous said...

no mention .....

Anonymous said...

hey can u please wirte it using while loop for the same output??????????
please........

Anonymous said...

wap to get three intejer charecter and coverts is to an intejer number.

madhu said...

hey rithish thanks yaar...
it would be even more helpful if u give explanation

bJadeLIVE said...

theres an easier code with simpler lines, ive created
#include
#include

int main(){
int i=1;
int j;
printf("please enter number for table:");
scanf("%d",&j);

for(i=1; i<13; i++){
printf("\n%d*%d=%d",i,j,i*j);
}


output

1*5=5
2*5=10
3*5=15
4*5=20
5*5=25
6*5=30
7*5=35
8*540
9*5=45
10*5=50
11*5=55
12*5=60

Anonymous said...

thnx..a lot..

sandeep kumar said...

thx paji
i got a big help bcoz of this site

Anonymous said...

Got passed in C external with 48/50
Thank you

shweta jha said...

thankewwwww

Rakshita Sharda said...
This comment has been removed by the author.
Rakshita Sharda said...

And also vertically...

Rakshita Sharda said...

plz tell about how to orient tables Horizontally and vertically?

balaji venkatesan96 said...

i like this site because all my assignment c program are here!
Thanks a lot :-)

sana afreen said...

thank yyou so much. this was really helpful :D

immu said...

how to write c program for displaying tables from 1-20,excluding 9&13.

KaRan Rana said...

#include
#include

int main()
{
int i=1;
int j;
printf("please enter number for table:");
scanf("%d",&j);

for(i=1; i<=10; i++)

printf("\n%d*%d=%d",i,j,i*j);
}

Sravya Pvvl said...

what is the need of declaring variable "k" when it is not defined any where?

Amulya said...

obviously you can.. here is the code for your problem.

void main()
{
int num,i;

printf("Enter the number to print its multiplication table");
scanf("%d",&num);
for(i=1;i<=10;i++)
{
printf("multiplication table is: \n %d * %d= %d",num,i,num*i);
printf("\n");
}
}

gautam kumar said...

Very useful site thanks for making this helpful site

Muqtaar Maxamuud Callas said...

write c program that multiplicatin table of the integar from 1 to 10