Tag Archives: variables

The Small (And Big) Tricks to BASIC programming

Even though we learn the basics, there must be some little tricks to BASIC:

  • Using The “Majalo” Command To Switch Players

In a player game, you might want to switch between players. A simple 2-person game between player “0” and player “1” ¬†probably is hard to program, but “Majalo”, or the remainder of the quotient, is here to help! You can freely copy this line to use Majalo to switch/alternate between two players:

(a+1)%2

The % sign should symbol the Majalo command. Even though it might seem confusing at first, This should clear it up: Continue reading The Small (And Big) Tricks to BASIC programming

The Basics of BASIC

Okay, now we covered all basics of BASIC. These pages are the posts of the Basics of BASIC programming:

In This Section We Learned about the print feature and how it’s the basis of BASIC programming

In This Section we learned about program directions and the run/list feature in BASIC. Directions are the basis of BASIC programming

In this section we learned about variables and how they are different from the mathematical variables, along with the input, randomizing, and algorithm of numbers. We also learned the becomes feature and described the linking of the If-Then statements in the Intermediate section.

Hopefully you learned a bunch from this tutorial/tutorials! In the Intermediate and Advanced stages of BASIC programming, you should find yourself looking at this archive page of the basics.

“No skyscraper construction is possible without the foundations of it”

Cheers,

Experiencedsitemaker- Or more relevant: Experiencedprogrammer

Variables and Numbers

OK, Mr. CodePress, we’ve learned about letters, printing, and lists. Now, we get to the juicy part: variables. No, these are not like your variables in your math class; these variables are assigned numbers either randomly by the computer, using an algorithm by the computer, or entered using the input tag.

Using “Input”

Input is used to assign a variable to a number, letter, or word. They work with if-then tags (covered in the next post) to make great choice-designed programs (which are pretty much almost every useful program)

Test It Out:

1 print “What number”

2 input g

3 print ,g, Continue reading Variables and Numbers