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;

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i improve myself in solving apptitude questions, guide and help me with some kind of tips.suggest me books too.so that i can get betterment in solving apps

3155


THERE ARE 3 MIXTURES WHEN MIXED IN THE RATIO OF 3:4:5 PRICE WAS 240.WHEN MIXED WITH 6:4:9 PRICE WAS 340.WHAT'S THE PRICE WHEN MIXED IN 5:6:8 RATION PRICE IS

4854


f(X)= 2X-1 + f(X-1) if X is not equal to zeroandiff(X=0)=0, If f(X)-f(X-1)=f(X-8) for X>5 then X= ?

1223


When time is 1:50, what is the angle between the two hands of a clock?

1202


if 8x+4y=6 and 4x+5y=7, x+y equlals

1141


If D is adjacent to F then who is adjacent to C?

1927


What annual payment will discharge a debt of rs. 6,450 Due in 4 years at 5% per annum simple interest?

1363


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

1164


a man is 24 years older than his son. In two years, his age will be twice the age of his son. The present age of his son is?

1477


A person meets a train at a railway station coming daily at a particular time . One day he is late by 25 minutes, and he meets the train 5 k.m. before the station. If his speed is 12 kmph, what is the speed of the train.

1640


How many 3-digit numbers will be there which are divisible by 19?

1092


A certain quantity of milk is found to be adulterated to the extent of 10%. What proportion of the adulterated milk should be replaced with pure milk to take the purity level to 98%?

1516


The ratio of the number of boys and girls in a school is 3:2 Out of these 10% the boys and 25% of girls are scholarship holders. % of students who are not scholarship holders.?

1253


What is the selling price of a scooter? If the cost of the scooter is Rs 50 and a profit of 10% over selling price is earned.

1195


A monkey starts climbing up a tree 20ft. tall. Each hour, it hops 3ft. and slips back 2ft. How much time would it take the monkey to reach the top?

1452