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
What are the advantages of using Unions?
What are the advantages of union?
Is c a great language, or what?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Why c is called a middle level language?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
write a program to create a sparse matrix using dynamic memory allocation.
Linked lists -- can you tell me how to check whether a linked list is circular?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Explain what is the stack?
What does nil mean in c?
What are the advantages of using new operator as compared to the function malloc ()?
What is this infamous null pointer, anyway?
What is c preprocessor mean?