DIR Return Create A Forum - Home
---------------------------------------------------------
Class Discussion
HTML https://srm.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Programming in C++
*****************************************************
#Post#: 20--------------------------------------------------
INLINE FUNCTION
DIR By: gaurav
Date: May 10, 2019, 8:45 am
---------------------------------------------------------
#include<iostream.h>
#include<conio.h>
int square (int a);
void main()
{
clrscr();
int j, k;
cout<<"Enter the value of a=";
cin>>k;
cout<<"Enter the value of b=";
cin>>j;
square(k);
square(j);
cout<<"The square of a number="<<square(k)<<"\n";
cout<<"The square of a number="<<square(j)<<"\n";
getch();
}
int square(int a)
{
return (a*a);
}
*****************************************************
Page 1 of 1