write a programme that inputs a number by user and gives
its multiplication table.
Answers were Sorted based on User's Feedback
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 |
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 |
What is nested structure with example?
How does the C program handle segmentation faults?
int a=2,b=3,c=4; printf("a=%d,b=%d\n",a,b,c); what is the o/p?
Explain how do you view the path?
What are the different properties of variable number of arguments?
How can a program be made to print the name of a source file where an error occurs?
Code for calculating square root without using library function, of math.h
what is the syallabus of computer science students in group- 1?
What are the commands should be given before weiting C Program i.e, Cd.. like
4 Answers IBM, Infonet, Satyam, Tech Mahindra,
What is use of #include in c?
What is structure packing ?
how can i print "hello"