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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a pointer a kind of array?

602


Is c a great language, or what?

604


write a program to display all prime numbers

1456


What do you mean by command line argument?

646


How do I use void main?

633






What is the difference between fread buffer() and fwrite buffer()?

674


Is c is a procedural language?

601


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1673


What is register variable in c language?

606


What is the general form of function in c?

610


how do you programme Carrier Sense Multiple Access

1518


What is indirection? How many levels of pointers can you have?

659


Can you write the algorithm for Queue?

1554


What is a macro in c preprocessor?

631


Explain what is #line used for?

608