Обсуждения
C++ task about
0 голосов
1 ответUbelieving order - C#.
0 голосов
1 ответAverage Score
0 голосов
1 ответWhat's wrong here?
2 голосов
1 ответMatt 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 голосов
2 ответовRoman numeral logic correction
0 голосов
1 ответRandom Num Generator
0 голосов
1 ответi dont know what should i do
1 голос
1 ответCan 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 голосов
8 ответовChallenge: Kaprekar numbers
0 голосов
3 ответовWhy is this the output?
0 голосов
2 ответовКак записать число двумя байтами?
0 голосов
1 ответАктуальное сегодня
Pig Latin
0 Votes
Someone can help me
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
0 Votes