Q&A Discussรตes
array
1 Voto
4 Respostasะฟะพัะตะผั ัะตะทัะปััะฐัะพะผ ะดะตะปะตะฝะธั ัะตะปะพะณะพ ัะธัะปะฐ ะฝะฐ ัะตะปะพะต ัะธัะปะพ ัะฒะปัะตััั ะฒะตัะตััะฒะตะฝะฝะพะต ัะธัะปะพ, ัะฐะทะฒะต ะฝะต ะดะพะปะถะฝะพ ะฑััั ัะตะปะพะต ัะธัะปะพ ะบะฐะบ ัะตะทัะปััะฐั ัะตะปะพัะธัะปะตะฝะฝะพะณะพ ะดะตะปะตะฝะธั? ะธ ัะพะณะดะฐ ะฟะพัะตะผั 2 ** 5 ัะฒะปัะตััั ัะตะปัะผ ัะธัะปะพะผ?
0 Voto
2 Respostaswhat's wrong in this condition
prompt ("")
if (prompt ("1")) {
document.write("<h1>HTML Tutorial</h1>");
} else if (prompt ("2")) {
document.write("<h1>CSS Tutorial</h1>");
} else {
document.write("<h1>JavaScript Tutorial</h1>");
}
I want when type 1 in output HTML tutorial shows, type 2 css tutorial shows else javascript tutorial
0 Voto
13 RespostasJava script
-1 Voto
3 RespostasIn the continue Loop -
i = 0
while True:
i = i +1
if i == 2:
print("Skipping 2")
continue
if i == 5:
print("Breaking")
break
print(i)
print("Finished")
It shows the output being
"1
Skipping 2
3
4
Breaking
Finished"
Why are the last three lines not
"Breaking
5
Finished"
Where it shows print(i) after break?
1 Voto
3 RespostasRuby Array Question
0 Voto
3 Respostasin order to find the sum of n numbers given by user,suppose our program is to find the sum of any 4 numbers given by user (using while loop such that (while(i<=4))and incrementing each value of i by 1),if the user give any 2 inputs instead of four then the total sum should be the summation of that two inputs..but the program shows the sum something else,why it is so??
2 Votos
3 RespostasCan anyone help me to code this
Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be:
5 Times Table
1 5 5
2 5 10
3 5 15
4 5 20
5 5 25
6 5 30
0 Voto
5 Respostasclasse animal has makesound function i.e grr..... nd classes cat and dog also have makesound function i.e meow nd woof respectively... due to inheritance classes cat and dog also have makesound function of animal class ie grr.... now my q is how compiler will know which function to execute is nt ds ambiguous??... two choices r dere....
1 make sound function of animal class ie grr
2 make sound function of own like woof or meow.... any help would be really helpful....
0 Voto
6 Respostas9
2 Votos
6 RespostasAssign each track runner a roster number and calculate the average age of the team.
As output the program should print the roster in three columns like in the following format:
Roster # Name Age
1 First Name 18
2 Second Name 19
3 Third Name 19
4 Fourth Name 20
5 Fifth Name 18
The average age of the team is 18.80.
-1 Voto
1 RespostaQuente hoje
Functions in python
2 Votes
How to make a playground
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
Python
0 Votes