HCL Company Programming Database

Write a program in JAVA which print 0 if 1 is provided as input and print 1 if 0 is provided.
Condition apply :
(i.) you can't use predefined function(like logical not).
(ii.) You can't use if-else condition.

Read Solution (Total 11)

HCL Other Question

at a special sale 5 ticket can be purchased as a price of 3 ticket, if 5 ticket are purchased at the sale, the amount saved will be what % of the original price of the 5 ticket. any fresher requirement