¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
C++ task about
0 Votos
1 RespuestaUbelieving order - C#.
0 Votos
1 RespuestaAverage Score
0 Votos
1 RespuestaWhat's wrong here?
2 Votos
1 RespuestaMatt 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 Votos
2 RespuestasRandom Num Generator
0 Votos
1 RespuestaCan 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 Votos
8 RespuestasWhy is this the output?
0 Votos
2 Respuestashow do I get line breaks?
name = input("What is your name?:")
print("Hiya, " + name)
age = int(input("Tell me your age:"))
year = str((2016 - age) + 100)
num = int(input("Enter a number between 1 and 50:"))
line = str((name + " will be 100 in the year " + year) * num)
print(\n line)
2 Votos
3 RespuestasEn tendencia hoy
Access deny problem
2 Votes
BOTSS
0 Votes
Help
0 Votes
3 consecutive words
0 Votes
A small question
0 Votes
How to use ai ?
0 Votes
c++ help
0 Votes