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
600 tennis players 4% ->wrist band on one wrist of remain 96%->25%->on both hands remain no of ---
why we will appoint you.
x:y=3 and x+y=80 what is the value of y?
A school has 30% students from Maharashtra .Out of these 20% are Bombey students. Find the total percentage of Bombay?
Ms. Neelam deposits an amount of Rs. 16420 at simple interest and obtained 25451 at the end of 5 years. What was the rate of interest per year?
a person who decided to go weekend trip should not exceed 8 hours driving in a day average speed of forward journey is 40 mph.due to traffic in sun days the return journey average speed is 30 mph.how far he can select a picnic spot.
Find the next number in the series 0,3,8,15,,24,48,63--
+ means * and * means / and / means % what is the value of these question 2+3*5/7 it was two question of these type.
A can do a piece of work in 20 days, which B can do in 12 days. In 9 days B does ¾ of the work. How many days will A take to finish the remaining work?
if x/y =4 and y is not '0' what % of 'x' is '2x-y'
There are 150 weights .Some are 1 kg weights and some are 2 kg weights. The sum of the weights is 260.is the number of 1kg weights?
In Bangalore, during income tax deduction for a single person, the percentage increased by 3% and for middle house-holders, it decreased by 3%. What can you infer?
The length and breadth of a rectangle are increased by 20% and 40% respectively. What is the percentage increase in its area?
A student gets 70% in one subject, 80% in the other. To get an overall of 75% how much should get in third subject.
f(X)=4f(X-1) THEN VALUE OF X=