Skip to content

Instantly share code, notes, and snippets.

@asakpke
Created August 24, 2021 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asakpke/a67b6245a1d7c78ef6363fb0b49ae24e to your computer and use it in GitHub Desktop.
Save asakpke/a67b6245a1d7c78ef6363fb0b49ae24e to your computer and use it in GitHub Desktop.
12 Learn Computer Programming/Coding on Your Mobile/Cell/Smart Phone in Urdu/Hindi - Nested Loop
<script>
for(var olv = 1; olv < 21; olv++)
{
//var num = 2
var num = olv
var result = 0
document.write("<h1>Table of " + num + "</h1>")
for(var lv=1; lv < 11; lv++)
{
result = num * lv
document.write(num + ' x ' + lv + ' = ' + result + '<br>')
} // lv
} // olv
</script>
@asakpke
Copy link
Author

asakpke commented Aug 24, 2021

Reference video: "12 Learn Computer Programming/Coding on Your Mobile/Cell/Smart Phone in Urdu/Hindi - Nested Loop" https://youtu.be/JlIbBwdEEFE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment