Computer Science, asked by umeshkesharwani599, 4 months ago

Write a program to find out the addition of three numbers. ​

Answers

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def add(nums):

_sum = 0

for n in nums:

_sum += n

return _sum

nums = [int(n) for n in input("enter 3 nums: ").split()]

print(f"sum: {add(nums)}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by shripoorna82
9

Explanation:

#include <stdio.h>

#include <conio.h>

sum ( int,int,int);

void main ( )

{

int a, b, c, d;

clrscr ( );

printf ( "\nACCEPT VALUE FOR a ,b)

scanf ("%d %d %d" , l& a, &b, &c);

d= sum ( a , b , c );

printf ( "\n Sum OF %d , %d and % d

getch ( );

}

sum ( int x , int y , int z )

{

int temp ;

temp= x+y+z ;

return ( temp );

}

Similar questions