write a programme that inputs a number by user and gives
its multiplication table.
Answer Posted / 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 |
Post New Answer View All Answers
What is function pointer c?
How can I write a function that takes a format string and a variable number of arguments?
What is extern keyword in c?
Explain what are the __date__ and __time__ preprocessor commands?
What is the purpose of void pointer?
What does nil mean in c?
What do mean by network ?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is the difference between union and anonymous union?
Explain null pointer.
What is 1f in c?
What is structure padding in c?
i want to know the procedure of qualcomm for getting a job through offcampus
Which node is more powerful and can handle local information processing or graphics processing?
What are valid operations on pointers?