Write a program to perform and print addition and division of two numbers as soon as you enter the two values.(in basic 256)
Answers
Answered by
3
Answer:
Mark as brilliant
Explanation:
Language: BASIC-256 Program: input "Enter a number : ", a input "Enter another number : ", b print "Sum:", a+b print "Division : ", a/b Output: input "Enter a number : ", a input "Enter another number : ", b print "Sum:", a+b print "Division : ", a/b Explanation: . input "something" a: accepts input in a with statement of " something". • a+b returns sum of a and b. • print statement prints the output on screen. • a/b returns a divided by b.
Attachments:
Answered by
2
Explanation:
python
def add(a,b) :
return ( x+y )
def dvid(a,b) :
return ( x/y )
a ,b = input().split
add(a,b)
dvid(a,b)
Similar questions