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 |
Write a program to print factorial of given number using recursion?
What are the differences between Structures and Arrays?
How can a number be converted to a string?
What is the difference between printf and scanf in c?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?
how to generate sparse matrix in c
What is file in c language?
Is fortran still used today?
what is the c.
Should I learn data structures in c or python?
Do you know the purpose of 'register' keyword?
Is c procedural or functional?