TCS Company Programming Basics

How many times is the loop executed in the following program? for (i = 0, j = 10; i <= 100; i++){ j = j * i; }

Read Solution (Total 23)

TCS Other Question

-29 % 5 is _____, -29 % -5 is _____

-5, 5
-5, -5
4, 4
-4, 4
5,-5
An apple costs Rs. 20. An orange costs Rs. 5. A banana costs Rs. 4. In a basket there are 30 fruits of which 6 are apples and the remaining are oranges and bananas. The total cost of the fruits in the basket is Rs. 230. How many oranges are there in the basket?