Computer Science, asked by Knowledgepedia12345, 3 months ago

2. Complete The Program

CLS
PRINT ''Enter two numbers''
INPUT ________
________= A+B
_______= A*B
Print "the sum of two numbers =":S
Print "the product of two numbers"
________

Answers

Answered by allysia
18

Correction (in bold below):

CLS

PRINT ''Enter two numbers''

INPUT ________

INPUT ________

________= A+B

_______= A*B

Print "the sum of two numbers =";S

Print "the product of two numbers" ; P

Program:

CLS

PRINT ''Enter two numbers''

INPUT A

INPUT B

S= A+B

P= A*B

Print "the sum of two numbers =";S

Print "the product of two numbers" ;P

Explanation:

  • Since only two values are there A and B will be accepted.
  • Since S is the sum of the numbers and so S = A+B.
  • Since P is the sum of the numbers and so P=A*B.


Anonymous: Excellent ✌
allysia: tq
Similar questions