Testing.

Wednesday, 28 December 2016

C progamming language: C program to Multiply to numbers (Mathematics operation).

//Normal program
#include<stdio.h>
#include<conio.h>
void main()
{
int a=20,b=10;
printf("%d",a*b);
getch();
}

outout:200

//Ask numbers from user to Multiply
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter No to multiply: ");
scanf("%d %d",&a,&b);
c=a*b;
printf("Multiplication Result= %d",c);
getch();
}


No comments:

Post a Comment