Tuesday, 4 October 2016

Program for multiplying two numbers .

#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr ();
int a,b,c;
cout<<“Enter first number “;
cin>>a;
cout<<“Enter second number “;
cin>>b;
c=a*b;
cout<<“Product of the given two numbers is “<<c;
getch ();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...