Consider the following C code:
int main() { sum = 0; for (n = 1; n < 3; n++) { n++; sum += g(f(n)); } printf("%d", sum); } int g(n) { return 10 + n; } int f(n) { return g(2 * n); }
What is the output?
Coding-Decoding
In a certain code, BASKET is written as ZYPJCR. How is FARMER written in that code?
A shopkeeper buys an item for Rs 2000 and marks it up by 50% to set the marked price. He then offers a 20% discount on the marked price. What is the profit earned by the shopkeeper?