Q&A Discussions
C++ task about
0 Votes
1 AnswerUbelieving order - C#.
0 Votes
1 AnswerAverage Score
0 Votes
1 AnswerWhat's wrong here?
2 Votes
1 AnswerMatt reaches the final round of a treasure hunt. In this, he finds that as he proceeds there are flags with the number written on them at different positions. The difference between two consecutive flags can be either a or b. If he finds the number on the first flag is 0. Given three integer, first one is number of flags present, second is a and third is b. then return all the possible values for last flag for each test case.
hunt({3 1 2}) = {2 3 4}
0 Votes
2 AnswersRandom Num Generator
0 Votes
1 AnswerCan someone explain this code to me....
class ReverseNumberDemo
{ public static void main(String args[]) {
int num=123456789;
int reversenum =0;
while( num != 0 ) {
reversenum = reversenum * 10;
reversenum = reversenum + num%10;
num = num/10; }
System.out.println("Reverse of specified number is: "+reversenum);
}
}
the thing I don't get is the reversenum part......isn't reversenum=0 so wouldn't reversenum*10=0
0 Votes
8 AnswersChallenge: Kaprekar numbers
0 Votes
3 AnswersWhy is this the output?
0 Votes
2 AnswersHot today
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Python
0 Votes