No products in the cart.

X=10 X=X+10 X=X-5 Print (X) Y=X-2 …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

X=10 X=X+10 X=X-5 Print (X) Y=X-2 Print (X,Y?
  • 1 answers

Preeti Dabral 3 years, 5 months ago

print "sum of",x,"and",y,"is",x+y

Let's learn about this line of code.

Whatever we write in (" ") or (' ') gets printed as it is and is not evaluated. So, 'Sum of' gets printed and then the value of 'x' gets printed (i.e. 10), then 'and' is printed as it is. Then value of y (i.e. 5) and at last x+y is calculated and printed.

http://mycbseguide.com/examin8/

Related Questions

Write a program for swapping two numbers?
  • 0 answers
What is alu
  • 1 answers
Define packages
  • 0 answers
Write a program for swapping two numbers
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App