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
How are pointers declared in c?
how to capitalise first letter of each word in a given string?
How many types of functions are there in c?
How can I find the modification date of a file?
Where are c variables stored in memory?
How is a macro different from a function?
Explain what will the preprocessor do for a program?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Explain main function in c?
List some of the static data structures in C?
Can a variable be both static and volatile in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Explain union. What are its advantages?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is bss in c?