C program for multiplication table , C/C++ Programming

Assignment Help:

C Program for MULTIPLICATION TABLE

 

main()

{

          int a, b=1, c, d;

          char ch;

          clrscr();

          while(ch!='n')

          {

                   printf("ENTER THE NO. WHICH TABLE DO YOU WANT?: ");

                   scanf("%d",&a);

                   printf("ENTER MAX. NO.: ");

                   scanf("%d",&c);

          }

          while(b<=c)

          {

                   d=a*b;

                   printf("%d * %d = %d\n",a, b, d);

                   b=b+1;

          }

          printf("DO YOU WANT TO CONTINUE?\n");

          flushall();

          scanf("%c",&ch);

          if(ch=='n')

          {

                   printf("BYE...BYE...\n");

          }

          getch();

}

 

OUTPUT :

 ENTER NO: 4

ENTER THE MAX NO: 5

4 * 1 = 4

4 * 2 = 8

4 * 3 = 12

4 * 4 = 16

 

 


Related Discussions:- C program for multiplication table

Least coast method, Find out initial basic feasible solution for the given ...

Find out initial basic feasible solution for the given transportation problem using Least Cost Method (LCM).

C with thread , #I have assignment c with unix thread multiplication progr...

#I have assignment c with unix thread multiplication program ..

Write a recursive implementation of euclid algorithm, Write a recursive imp...

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers. Descriptions of this algorithm are available in algebra books

Tool for checking memeory leak, what would be the best tool for debuggingg ...

what would be the best tool for debuggingg memory leaks in c/c++ programming

What are virtual functions in c++, A virtual function permits derived class...

A virtual function permits derived classes to replace the implementation given by the base class. The compiler makes sure the replacement is always known as whenever the object in

#pointers, what is the purpose of pointer ? what is the syntax? how it work...

what is the purpose of pointer ? what is the syntax? how it works?

LOOPS, HOW CAN WE EASLY LEARN C++

HOW CAN WE EASLY LEARN C++

Working with files in cpp, Operation Files 2.1. Your program should open an...

Operation Files 2.1. Your program should open and read the file specified by the first command line argument of the program. 2.2. The first line of the file contains an integer

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd