Discussion :: Functions and Subroutines - General Questions (Q.No.16)
Nirmal said: (Jun 21, 2012) | |
Initial s=1, i=7; In loop j initialized to 1 loops upto <=7 s=1*1; s=1*2; . . . s=720*7; return (5040); In fun call it prints value 5040 |
Rifathapps said: (May 4, 2016) | |
s = 1 * 1 = 1. s = 1 * 2 = 2. s = 2 * 3 = 6. s = 6 * 4 = 24. s = 24 * 5 = 120. s = 120 * 6 = 720. s = 720 * 7 = 5040 --> Answer. |
Post your comments here:
Name *:
Email : (optional)
» Your comments will be displayed only after manual approval.