Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion calculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<title>Calculator</title><meta charset="utf-8">
<script type="text/javascript">

function cube() {
var num = document.getElementById("n1");
num.value = Math.pow(num.value, 3);
}
function square() {
var num = document.getElementById("n1");
num.value = num.value * num.value;
Expand All @@ -12,6 +16,7 @@
Number:
<input type="text" id="n1"><p>

<button onclick="square()"> x<sup>2</sup> </button>
<button onclick="cube()"> x<sup>3<sup></button>
<button onclick="square()"> x<sup>2<sup></button>
</body>
</html>
13 changes: 13 additions & 0 deletions eje4opcionalaph.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
git clone https://github.com/Alanstark19/cal_2com.git
ls
ls -a cal_2com
cd cal_2com
git status
git log
git branch mi_rama master
git checkout mi_rama
git add .
git commit -m "x^3button"
git log --oneline
git push https://github.com/Alanstark19/cal_2com.git mi_rama
history -w eje4opcionalaph.txt