Computer Science, asked by ap0379928, 4 months ago




Find the output a) 14/3
c) 14%3
b)14//3

Answers

Answered by jinujoji2005
8

ANSWER

a) 4.67

b)0.143

c)0.071

hope it helps thank me later if you are satisfied

pls mark as brainliest

Answered by BrainlyProgrammer
7

Answers:-

(a) 4.666666666666667

(b) 2

(c) 4

Explaination:-

  • 14/3 :- Here '/' returns the results in decimal form therefore the answer is 4.666...7
  • 14%3:- Here '%' is a modulus operator which is used to return the remainder 14 divided by 3, remainder is 2
  • 14//3 :- This returns the results in the integer form i.e. quotient of the number on dividing. 14 divided by 3 quotient is 4

Always remember:-

  • '/' returns in double data type value while '//' returns integer data type value
  • '//' returns the quotient of 14÷3 while '%' returns the remainder.
Similar questions