C
Programming and Technical
Programming
Arrays
What will be the output of the following pseudo-code statements:
integer a = 456, b, c, d =10
b = a/d
c = a - b
print c
Read Solution (Total 12)
-
- ans. 411
Explanation. b=456/10, as b is an integer data type so b=45.
again c=456-45, so c=411. - 8 years agoHelpfull: Yes(17) No(0)
- 411 Explanation. b=456/10, as b is an integer data type so b=45.
again c=456-45, so c=411. - 7 years agoHelpfull: Yes(3) No(0)
- answer: 411
b=456/10, it return only int as per programming concept so 45.6 convert to 45
c=456-45
c=411 - 7 years agoHelpfull: Yes(2) No(0)
- 410 is the answer
- 8 years agoHelpfull: Yes(1) No(18)
- a=456
b=45
c=411
output: 411 - 7 years agoHelpfull: Yes(1) No(0)
- the answer is b=456/10=45.6. then c=456-45.6=410.4. finally the answer is c= 410.4
- 7 years agoHelpfull: Yes(0) No(9)
- In this b is an integer value so b=45.c=411
so answer is 411 - 7 years agoHelpfull: Yes(0) No(0)
- Ans: 411
b=456/10=45.6
c=456-45(as variables are integers)=411 - 7 years agoHelpfull: Yes(0) No(0)
- answer is 411.
- 7 years agoHelpfull: Yes(0) No(0)
- b=a/d=456/10=45
c=a-b=456-45=411..so print c ...c value 411 - 6 years agoHelpfull: Yes(0) No(0)
- b=456/10, as b is an integer data type so b=45.
again c=456-45, so c=411. - 4 years agoHelpfull: Yes(0) No(0)
- a=456
d=10
b = a/d
c = a - b
print(c) why(410) python idle given - 3 years agoHelpfull: Yes(0) No(0)
C Other Question