Function In C Language - .OnlineGuruji

.OnlineGuruji

Provides E-Notes,Video Tutorials And Download Links For Students In hindi

*********************************************************

*********************************************************
********************************************************************************

Breaking

Ramchandicollege Saraipali

Technology Jobs

OnlineGuru Blog मे आपका स्वागत है ब्लॉग से संबन्धित जानकारी के लिए संपर्क करें मो ॰ नम ।-9826026747(सपन कुमार दास) अपने विषय से संबन्धित अपडेट प्राप्त करने के लिए ब्लॉग पे दिये गए Bell Icon को press करें कम्प्युटर,Science,English Grammer से संबन्धित विषय की अधिक जानकारी के लिए हमारे ब्लॉग अथवा यू ट्यूब चैनल को सब्क्राइब करे ..

Friday, February 12, 2021

Function In C Language

#include<stdio.h>

#include<conio.h>

void main()

{

void sum();

clrscr();

printf("This program calculate the sum of two number");

sum();

getch();

}

void sum()

{

int x,y,result=0;

printf("Enter the value");

scanf("%d%d",&x,&y);

result=x+y;

printf("The sum of two number =%d",result);

getch();

}

------------------------------------------------------------------------------------------------------------------

#include<stdio.h>

#include<conio.h>

void main()

{

void sum(int,int)

int x,y;

clrscr();

printf("This program calculate the sum of two number");

printf("Enter the value");

scanf("%d%d",&x,&y);

sum(x,y);

getch();

}

void sum(int a,int b)

{

int result=0;

result=a+b;

printf("The sum of two number =%d",result);

}

-----------------------------------------------------------------------------------------------------------------------

#include<stdio.h>

#include<conio.h>

void main()

{

int sum(int,int)

int x,y,result=0;

clrscr();

printf("This program calculate the sum of two number");

printf("Enter the value");

scanf("%d%d",&x,&y);

result=sum(x,y);

printf("The sum of two number =%d",result);

getch();

}

int sum(int a,int b)

{

int s=0;

s=a+b;

return(s);

}

No comments:

Post a Comment