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 |
which one is highest Priority in c? a)=,b)+,c)++,d)==
What is getch c?
How to find the usage of memory in a c program
What is NULL pointer?
Do you know the use of 'auto' keyword?
What is variable in c example?
What is a static variable in c?
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????
main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????
Can a pointer be null?