write a programme that inputs a number by user and gives
its multiplication table.

Answers were Sorted based on User's Feedback



write a programme that inputs a number by user and gives its multiplication table...

Answer / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
int n,m;
printf("enter the table number you want :");
scanf("%d",&n);
printf("enter the steps upto which you want :");
scanf("%d",&m);
for(int i=1;i<=m;i++)
{
printf("%d * %d =%d",i,n,i*n);
}
getch();
}

Is This Answer Correct ?    3 Yes 2 No

write a programme that inputs a number by user and gives its multiplication table...

Answer / venkatesh sabinkar

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,i,c;
printf("enter the number:");
scanf("%d",&a);
printf("enter upto how many steps upto you want :");
scanf("%d",&b);
c=b;
for(i=1;i<=b;i++)
{
printf("%d * %d =%d",i,a,c=c+a);
}
getch();
}
getch();

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More C Interview Questions

which one is highest Priority in c? a)=,b)+,c)++,d)==

4 Answers  


What is getch c?

0 Answers  


How to find the usage of memory in a c program

1 Answers   Infosys,


What is NULL pointer?

0 Answers   Infosys,


Do you know the use of 'auto' keyword?

0 Answers  






What is variable in c example?

0 Answers  


What is a static variable in c?

0 Answers  


Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

0 Answers  


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????

8 Answers  


main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????

1 Answers  


Can a pointer be null?

0 Answers  


Categories