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
Petrol prices increased by 40% expected hike in taxi & auto charges so, people may use public transport systems. What do you infer?
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.
f(x,y) =x**2 -y**2 then the value of f(4,(f(1,2) is
Find the next series: AC CG GO OE ?
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.
how to retrieve the recent record from the database using sql query. suppose the table has the columns only ename,job,salary columns
aptitude questions
If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself?
inept : clever :: languid :
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?
How many mod 3 counters are required to construct mod 9 counter.
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.
If substitution is as it's burnout. Didn't remember. But this is one.
Which number does not belong to this series 1,1,2,3,4,5,8,13,21?
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.