Search This Blog

Friday, 21 August 2020

Custom function making

 #include<iostream>

#include<cmath>

void mauli(int );        //define

int main()       //function

{        //double is a lareg number and real number

using namespace std;

 int y;

 

    mauli(y);         //function call

cin.get();

system ("pause");

return 0;

}

void mauli(int x)           //void means nothing

{

using namespace std;

cout<<"eneter the number :"<<endl;

cin>>x;

cout<<"my fave num is "<< x<<endl;

}


No comments:

Post a Comment

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts