New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
What is wrong with this code?
-
-
<!Doctype html>
<head>
</head>
<body>
<form>
<input type="text" id="input">
</form>
<button type="button" id="button">Click here</button>
<script>
var input=document.getElementById("input");
var button=document.getElementById("button");
function display() {
if (button.clicked == true) {
console.log("input");
}
};
display();
</script>
</body>
0 Votes
7 Answersi want to print sum of all integers from 1to 100 like for example :
1
3
6
10
15......
i tried it i know my code is wrong please help me class Program {
public static void main(String[] args) {
for(int x = 1; x <101; x++) {
int sum = int x;
System.out.println("1");
System.out.println("sum");
}
}
}
3 Votes
11 AnswersChallenge mode improvements.
0 Votes
1 Answeri need help
1 Vote
3 AnswersHot today
Media on HTML
0 Votes
Is Sololearn better or Mimo.org?
1 Votes
How to show img???
0 Votes
How to solve this
1 Votes
Code Playground
0 Votes
Java project
0 Votes
Editor HTML
0 Votes
JavaScript
0 Votes