Computer Science, asked by sahilgangwar9, 9 months ago

Ch+=2 is equivalent to​

Answers

Answered by poojan
10

Ch+=2 is equivalent to Ch = Ch + 2, in the programming world.

Explanation:

In programming languages like Python,  +=, -=, *=, /=, %= are the shorthand assignment operators.

a+=b denotes a=a+b

a-=b denotes a=a-b

a*=b denotes a=a*b

a/=b denotes a=a/b

a%=b denotes a=a%b

As per these notations, ch+=2 is equivalent to ch=ch+2, which means that the value in ch is incremented by 2 and the resultant value is assigned to ch back.

Learn more:

1. A CSS file cannot be linked to a web page. State True or False.

https://brainly.in/question/21107345

2. True or false: to join two strings,use the dollar ($) character.

brainly.in/question/21624446

Similar questions