Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain the logic
k=num%10;
sum=sum+k;
num=num/10;

Answers were Sorted based on User's Feedback



Explain the logic k=num%10; sum=sum+k; num=num/10; ..

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

Explain the logic k=num%10; sum=sum+k; num=num/10; ..

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

Explain the logic k=num%10; sum=sum+k; num=num/10; ..

Answer / cathie

reverse of a number

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More General Aptitude Interview Questions

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

0 Answers   Bajaj Allianz, NDS,


3,3,5,4,4,-,-,5,4,3, find the blanks of given series

6 Answers  


will u please send me po exam sloved papers of iob

0 Answers  


in early medevial india what did the term jital refer to

3 Answers   CDS,


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

0 Answers  


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

1 Answers   BSRB,


Two sides of triangle are 14 and 16.hat could be the third side?

2 Answers  


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

0 Answers  


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.

1 Answers   Infosys,


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?

1 Answers  


f(X)=4f(X-1) THEN VALUE OF X=

0 Answers   CTS,


Categories