Computer Science, asked by akankshapalekar, 3 months ago

to accept four numbers from the user and calculate and print their sum

Answers

Answered by anvisha27008
1

Answer:

Four digit numbers =4⋅3⋅2⋅1=24 ways we can form a four digit number. Since it's a 4 digit number, each digit will appear 6=24/4 times in each of units, tens, hundreds, and thousands place. Therefore, the sum of digits in the units place is 6(1+2+5+6)=84. Why they are adding 1+2+5+6?

Explanation:

Answered by aditya1222415364
3

Answer:

NOTE: IN PYTHON

a = int ( input("enter 1st number:"))

b = int ( input("enter 2nd number:"))

c = int ( input("enter 3rd number:"))

d = int ( input("enter 4th number:"))

sum = a + b + c + d

print(" sum of 4 numbers is", sum)

the output produced by the above program is:

enter 1st number : 1

enter 2nd number : 3

enter 3rd number : 5

enter 4th number : 10

sum of 4 numbers is 19

Mark Brainliest + like if it helps you.... ❣️

Similar questions