Lesson 2 Programming
by the electrical engineer in Circuits > Computers
1083 Views, 19 Favorites, 0 Comments
Lesson 2 Programming
To start with the next programming tutorial you need a real programming program. The program can be downloaded for free at just Basic.com. This programming language is easy and free so I thought our next tutorial should be using that.
The first step is to know the word printing word. The word we will now use is print. So to print your name on the screen you would have to write (print mike). So it is a bit different from giving the computer commands.
Now let's make something harder. To make a script that doubles numbers you can use the script below.
input x
x=2*x
print "doubled is"
print x
This code indicates what x is and then displays it doubled. The * is the multiplication key.
input x
x=2*x
print "doubled is"
print x
This code indicates what x is and then displays it doubled. The * is the multiplication key.
Please fav and follow. also check out my youtube channel from this link.http://www.youtube.com/channel/UCwc6nYCOwF-e83hj3f_D_2Q