Write a program to Multiplication two numbers.

 Write a program to Multiplication two numbers

Write a program to Multiplication two numbers


//Write a program mult two number
#include<stdio.h>
#include<conio.h>
void main()
{
    int a,b,mult; //mult=multiple
    printf("\n Enter First Number=");
    scanf("%d",&a);
    printf("\n  Enter Second Number=");
    scanf("%d",&b);
    mult=a+b;
    printf("\n Mult=%d",mult);
    //Second method
    printf("\n Mult=%d*%d=%d",a,b,a*b);
    getch();
}

Output:- 

 Enter First Number=2

 Enter Second Number=33

 Mult=35

 Mult=2*33=66










Related Program (Please Check)

1. Basic Question All


Post a Comment

1 Comments