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

Answer Posted / cathie

reverse of a number

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the plane question was asked.it took off from 7 degree 53' 6.1'' and landed at 8 degree 6' 43.5''.it takes 12 hours to travel between these points.then what will be local time at destination ?

764


Complete the series. 4, -5, 11, -14, 22, ---

829


3 red and 4 blue balls are in a basket. A member of PPTeam is drawing balls from the basket.What is the probablity of getting the 3 red balls simultaneously?

818


Complete the series 2, 7, 24, 77,__ (hint: 2*12= 24, 7*11= 77, therefore 24*10= 240)

875


in a mixture, R is 2 parts, S is 1 part. in order to make S to 25% of the mixture, howmuch R is to be added

743






A can do a piece of work in 30 days, which B can do in 20 days. Both started the work but A left 5 days before the completion of the work. It took how many days to complete the work?

727


Two circles , one circle is inscribed and another circle is N outscribed over a square. What is the ratio of area of inner to outer circle.

811


WHO WAS GIVEN BEST ACTOR AWAR 2010 IN FILM FARE?

1707


A man spending half of his salary for house hold expenses, 1/4th for rent, 1/5th for travel expenses, a man deposits the rest in a bank. If his monthly deposits in the bank amount 50. What is his monthly salary ?

882


6 Face of a cube are painted in a manner ,no 2 adjacent face have same colour three colurs used are red blue green. Cube is cut in to 36 smaller cube in such a manner that 32 cubes are of one size and rest of them bigger size and each bigger side have no red side.

757


In the series 0, 3, 8, 15,__ What is the next number?

716


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.

798


I most like to work with? Most men act though?

1429


How many 1's are there in the binary form of 8*1024 + 3*64 + 3

1021


There are 4 married couples out of which 3 a group is needed . But thier should not be his of her spouse .How many groups are possible ?

2497