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
C language questions for civil engineering
Explain the difference between the local variable and global variable in c?
What are formal parameters?
How do I send escape sequences to control a terminal or other device?
What is difference between && and & in c?
Explain what is a const pointer?
Is c call by value?
Write a code of a general series where the next element is the sum of last k terms.
Why is c used in embedded systems?
How do you do dynamic memory allocation in C applications?
What is the difference between call by value and call by reference in c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is far pointer in c?
What is header file definition?
Explain the difference between malloc() and calloc() in c?