Question
What is the output of the following pseudo-code?Â
 ```   count = 0   for i from 1 to 3:     for j from 1 to i:       count = count + 1   print(count)   ```Solution
Dry Run: Â Â Â Â Â Â `count = 0` Â Â Â Â Â Â `i = 1`: Â Â Â Â Â Â Â Â `j = 1`: `count = 0 + 1 = 1` Â Â Â Â Â Â `i = 2`: Â Â Â Â Â Â Â Â `j = 1`: `count = 1 + 1 = 2` Â Â Â Â Â Â Â Â `j = 2`: `count = 2 + 1 = 3` Â Â Â Â Â Â `i = 3`: Â Â Â Â Â Â Â Â `j = 1`: `count = 3 + 1 = 4` Â Â Â Â Â Â Â Â `j = 2`: `count = 4 + 1 = 5` Â Â Â Â Â Â Â Â `j = 3`: `count = 5 + 1 = 6` Â Â Â Â Â Â Final `count = 6`Â
Which scheme is launched by APEDA to promote export of agri-products from clusters identified across India?
The financial assistance scheme of APEDA for exporters is known as:
Which of the following is an objective of NSOP?
The livestock census aims to collect information about all the livestock along with their age, sex composition, etc. The livestock census is conducted o...
What does GMP stand for under FSSAI’s hygiene regulations?
Which of the following is NOT a function of FSSAI?
What is the validity of organic certification under NPOP?
Which organization is responsible for implementing NPOP in India?
International centre for Agricultural Research in Dry Areas (ICARDA) is located at             Â
...What is the type of license required for food businesses with turnover below ₹12 lakh?