मराठी

Explain the following with one example. Arithmetic operator - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Explain the following with one example. 

Arithmetic operator 

Give two examples of Arithmetic operators. 

थोडक्यात उत्तर

उत्तर

Arithmetic operators perform arithmetic operations within a program. Unary arithmetic operators apply to a single operand (prefix or postfix), while Binary arithmetic operators deal with two operands. Shorthand binary operations also employ Binary operators. 

Example: 

  • +, −, ++, −−, *, /, &, %
  • sum += b; // shorthand
  • int c = num % 2
shaalaa.com

Notes

Students should refer to the answer according to their question and preferred marks. 

  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.04 Operators in Java
EXERCISES | Q V. 3. (a) | पृष्ठ ४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×