Saturday, 16 May 2020

MULTIPLICATION PROGRAM IN C

OUR NEXT PROGRAM IS:

MULTIPLICATION OF TWO NUMBERS:

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("\nEnter two numbers to multiply: \n");
scanf("%d%d",&a,&b);
c=a*b;
printf("THE RESULT OF MULTIPLICATION IS %d",a,b);
getch();
}

OUTPUT:

          ENTER TWO NUMBERS TO MULTIPLY: 2  3

        THE RESULT OF MUTIPLICATION IS 5

EXPLANATION:

           THIS PROGRAM IS USED TO MULTIPLY TWO NUMBERS.

  OPERATORS:

                (*)

OPERANDS:

     A,B, AND C.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...