Computer Science, asked by kreetikathakur001, 4 months ago

calculate sum of two numbers using user defined function ​

Answers

Answered by axtro
6

Answer:

I GOT YOU

Explanation:

int sum(int , int);//function declaration or prototype.

int main()

{

int num1,num2,total;//variable declaration.

printf("Enter the two number ");

scanf("%d %d",&num1,&num2);//getting two number as input from user.

total=sum(num1,num2);//calling the function.

Answered by Anonymous
1

Answer:

hello,

its using python

Explanation:

# program to calculate sum of two numbers using user defined function ​

def sum(a,b):

   sum=a+b

   print("sum of the two numbers is:",sum)

# main

x=eval(input("enter the number"))

y=eval(input("enter the number"))

sum(x,y)

_________________

hope it helps you

please mark brainliest

@ItzSnowySecret07

Similar questions