Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a programme that inputs a number by user and gives
its multiplication table.

Answers were Sorted based on User's Feedback



write a programme that inputs a number by user and gives its multiplication table...

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

write a programme that inputs a number by user and gives its multiplication table...

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

Post New Answer

More C Interview Questions

What is the difference between typeof(foo) and myFoo.GetType()?

2 Answers   Synergy,


Explain Basic concepts of C language?

0 Answers   EXL,


who is the father of C Language?

20 Answers   CTS, UST,


Write a program that his output * *** *****

1 Answers  


struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(ā€œ%dā€,s.x); }

2 Answers   Vector,


Why do we use pointer to pointer in c?

0 Answers  


what are the difference between ANSI C and Let Us c and Turbo C

4 Answers   LG Soft,


Why c is a mother language?

0 Answers  


What is data structure in c programming?

0 Answers  


a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


What is anagram in c?

0 Answers  


How to find the usage of memory in a c program

1 Answers   Infosys,


Categories