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

Petrol prices increased by 40% expected hike in taxi & auto charges so, people may use public transport systems. What do you infer?

1186


one fast typist type some matter in 2hr and another slow typist type the same matter in 3hr. if both do combinely in how much time they will finish.

1184


f(x,y) =x**2 -y**2 then the value of f(4,(f(1,2) is

1200


Find the next series: AC CG GO OE ?

1772


Four persons can cross a bridge in 3, 7, 13, 17 minutes. Only two can cross at a time. Find the minimum time taken by the four to cross the bridge.

1348


how to retrieve the recent record from the database using sql query. suppose the table has the columns only ename,job,salary columns

2275


aptitude questions

8536


If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself?

1217


inept : clever :: languid :

1187


2/3 of people read newspaper A,3/4 read newspaper B.if 38 read both and 8 didn't read any of the 2.how many read A?

1539


How many mod 3 counters are required to construct mod 9 counter.

1260


three clocks where set to true time .First run with the exact time ..second slows one minute/day. third gains one minute/day. after how many days they will show true time.

2213


If substitution is as it's burnout. Didn't remember. But this is one.

4732


Which number does not belong to this series 1,1,2,3,4,5,8,13,21?

1234


A and b can do a piece of work in 15 and 10 days. A and b work on it for sometime and then a leaves b completes the job in 5 days. For how long did a work.

1244