Explain the logic
k=num%10;
sum=sum+k;
num=num/10;
Answers were Sorted based on User's Feedback
Answer / rudrapathi
It is the logic for adding the digits of given number
for example no is 1234
output is 1+2+3+4=10
| Is This Answer Correct ? | 27 Yes | 1 No |
Answer / bariki shanmukha[anantapuram,m
I wil take 3 variables such as,sum=0,k,num[IT REPRESENTS
GIVEN NUMBER BY THE USER].
itr1 itr2 itr3 itr4 itr5
k : - 4 3 2 1
sum: 0 4 7 9 10
num: 1234 123 12 1 0
like that exucution wil b starts which is above mentioned.
| Is This Answer Correct ? | 11 Yes | 3 No |
My question is ..I have around 1.5 yrs of testing exp and got a call from NDS on Monday, bangalore . Can anybody plz provide me the apptitude questions asked in the written test? I am weak in apptitude :(......plzzzz help...waiting for you reply at the earliest
3,3,5,4,4,-,-,5,4,3, find the blanks of given series
will u please send me po exam sloved papers of iob
in early medevial india what did the term jital refer to
5) Failure to use null indicator variable when referencing a nullable column will give the following SQLCODE a) +150 b) –001 c) +276 d) +305
hi... i am kanchana presently i have applyed for the indian bank clerk examination.. Pls tell me about the clerk interview what type of question they will ask..kindly send me detailes under signed email id: kanchana_kks@yahoo.com
Two sides of triangle are 14 and 16.hat could be the third side?
1. Questions on probability 2. Questions on statistics (mainly growth rates, market shares, etc.) 3. Questions on general logics 4. Evaluate strengths and weekness of proposed product All questions are open test
0 Answers DEK, Nielsen, SP Jain, TMR,
hai team members pls send sbi bank clerk exam model question paper to my email id faruque_mullick@yahoo.co.in
There are 6 volumes of books on a rack kept in order ( ie vol.1, vol. 2 and so on ). Give the position after the following changes were noticed. � All books have been changed � Vol.5 was directly to the right of Vol.2 � Vol.4 has Vol.6 to its left and both weren't at Vol.3's place � Vol.1 has Vol.3 on right and Vol.5 on left � An even numbered volume is at Vol.5's place Find the order in which the books are kept now.
A cistern can be filled by two pipes in 30 an 40 min, respectively. ... How long after the pipes have been turned on, the first one was turned off?
f(X)=4f(X-1) THEN VALUE OF X=