Computer Science, asked by anitasharma78534, 5 months ago

Q-1. take two number as a input and print their sum. Q-2. Take three number as a input and multiply them and print the result.​

Answers

Answered by allysia
7

Answer:

USING PYTHON:

1.

a=int(input("Enter a number: "))

b=int(input("Enter another number: "))

print("The sum will be:", a +b)

2.

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

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

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

print("The product will be:", a*b*c)

Answered by Anonymous
8

Hey Mate !

The python program is as follows :-

1.

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

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

sum = a + b

print("The sum is", sum)

2.

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

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

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

product = a * b * c

print("The product is", product)

Attachments:

BrainlyPotter176: Splendid!
Anonymous: Thanks mate ! :) I'm just a beginner Python Programmer.
Similar questions