#13 Introduction to functions in c++ programming tutorial in urdu hindi | what Definition using cpp

preview_player
Показать описание
Introduction to #functions in #c++ #programming #tutorial in #urdu #hindi and what are functions definition.
In this video we will learn what are functions in c++ , how functions work in c++, basic function definition with examples
why we use main function in c
calling c functions from p
how to declare a function in c
called function and calling function in c
what is parameter in c language
function without argument and with return value in c
function declaration definition
what is main function in c
function declaration and definition in c
types of function in c language
different types of functions in c
Рекомендации по теме
Комментарии
Автор

who feel proud to be a part of HAZRAT MUHAMMAD SAW

ifrahnaz-ii
Автор

BEST TEACHER FOR PROGRAMMING ON WHOLE YOUTUBE 💯💯. TOO MUCH BETTER THAN INDIANS 😁😁

aliumerofficial
Автор

Best vedio of programming on YouTube 👌👌👌

sabrakaramat
Автор

Bhai bahut sare video me aap sab se achha samjhte h thank bro

triptitiwari
Автор

There is no Love react in youtube to reacted with!This is realy amazing and just wow!

faizanahmad
Автор

ap k parane ka andaz bhut zabardast ha sir😍🥰😝

RajasultanAlam-gd
Автор

Alhamdolilah mara concept clear ho gaya ha thk you sir. Sir it's a highly request pls add more topics in c++ playlist like opp and many more Jazakallah

MrZeast
Автор

PHD Holder Sir hain hamry but un ki mujy samjhh nai i Ap ny bhot achay Method sy explain kia Sir..
Hats off ❣️❣️

tayyabcheema
Автор

tanx shazib bhai....ap student k choti choti mushkilat ko mad e nazaer rakhty hwy lecture deliver krty han..
"may u sucess in every field of life."

anwarullah
Автор

it is really very interesting tutorial, make more videos like this sir

NaymaKhan-bl
Автор

Sir g kasam say india walun ki dharam shastra sunn sunn k thakk gye thay....bundle of thanks dear bro😍😍😍

shahjahanphotography
Автор

no words for u sir SUBha mra final hai or abhi ap ki vedio dkhi or ab full course idhr sy kr rhi thnk u sooo much

mahnoorbatool
Автор

thankyou so much sir <3 after watching 20+ function videos mjhe sirf ap k video k smajh aye

huzaifaalam
Автор

main ny youtube sy buhat lectures dekhy hy, lekin aap ki lecture mujy sab sy easy and efficient lagi.... LOVE YOU

fahadzaman
Автор

Walaikim Asalam Malik shahzaib sahab
App ka tareeqa sab say best hy samjhanay ka, bohat acha samjhatay ho, concept samaj ajata mujy to, puri baat, a to z was perfect explanation

songsworld
Автор

Thank you Malik Shahzaib
it is too much useful tutorial

maqadasmanzoor
Автор

Amazing video ... Well explained .. Mein ny kafi videos dekhi but function clear nhi hwa but apki videos sy mery sary concept clear ho gy .. Thank you so much .

fakhrabashir
Автор

#include<iostream>
using namespace std;

void square()
{

int n1;
cout<<"Enter a Number "<<endl;
cin>>n1;
cout<<" The Squar is "<<n1*n1<<endl;
}

void arithmatic()
{
int operation;
cout<<"press 1 for Addition"<<endl;
cout<<"press 2 for subtraction"<<endl;
cout<<"press 3 for multiplication"<<endl;
cout<<"press 4 for division"<<endl;
cin>>operation;

int n1, n2, n3;
cout<<"Enter a first Number "<<endl;
cin>>n1;
cout<<"Enter a second Number "<<endl;
cin>>n2;
switch(operation)
{
case 1:
cout<<"The Sum is = "<<n1+n2<<endl;
break;
case 2:
cout<<"The subtraction is = "<<n1-n2<<endl;
break;
case 3:
cout<<"The multiplication is = "<<n1*n2<<endl;
break;
case 4:
cout<<"The division is = "<<n1/n2<<endl;
break;
default:
cout<<"invalid Number "<<endl;
break;
}
}
void Greater()
{
int n1, n2;
cout<<"Enter First Number "<<endl;
cin>>n1;

cout<<"Enter Second Number "<<endl;
cin>>n2;

if(n1>n2)
cout<<n1<<" is greater "<<endl;
else
cout<<n2<<" is greater "<<endl;
}

void lesss()
{
int n1, n2;
cout<<"Enter First Number "<<endl;
cin>>n1;

cout<<"Enter Second Number "<<endl;
cin>>n2;

if(n1<n2)
cout<<n1<<" is less "<<endl;
else
cout<<n2<<" is less "<<endl;
}

void even()
{
int i;
cout<<"Enter a Number "<<endl;
cin>>i;
if(i%2==0)
cout<<i<<" Number is Even "<<endl;
else

cout<<i<<" Number is converted to even and become "<<i+1<<endl;
}


void odd()
{
int i;
cout<<"Enter a Number "<<endl;
cin>>i;
if(i%2==1)
cout<<i<<" Number is Odd "<<endl;
else

cout<<i<<" Number is converted to odd and become "<<i+1<<endl;
}


void multiply()
{
int a, b=10;
cout<<"Enter a Number "<<endl;
cin>>a;

cout<<" The number after multiply with 10 is = "<<a*b<<endl;
}





int main()
{

while(true)
{
int number;
cout<<"press 1 for Square"<<endl;
cout<<"press 2 for arithmetic operations "<<endl;
cout<<"press 3 to display greater "<<endl;
cout<<"press 4 to display less"<<endl;
cout<<"press 5 for even conversion"<<endl;
cout<<"press 6 for odd conversion "<<endl;
cout<<"press 7 for multiply with 10"<<endl;
cin>>number;

if(number==1)
square();
else if(number==2)
arithmatic();
else if(number==3)
Greater();
else if(number==4)
lesss();
else if(number==5)
even();
else if(number==6)
odd();
else if(number==7)
multiply();
else
cout<<" ***invalid Number*** "<<endl;



}





return 0;
}

nahidsart
Автор

sukr ha smjh aa gai. sir acha guide kia ha ap ny thank u sooo much

duach
Автор

great sir
teaching method is lovely
shukar hai ap mil gai baqi to ratty lagwa rhe hain

tahirkhan-wzor