what is a var code example

Example: what is a variable?

-- In programing variables exist in 99%(if not all) of programing languages:
-- Think of them as little boxes that can store data
-- some examples:

-- C#
  count = 0;
  While true
  {
    count = count + 1;
    print(count);
  }
  
-- Python
	count = 0
	While True:
    	count = count + 1
        print(count)
        
-- as you see, both of these programs will output:
1
2
3
4
5
6
7
8
9
...
-- and it will keep counting till you crash the program.

-- (ps I am using sql cause it looks nice and hilights a bunch of stuff)
-- Youtube: https://www.youtube.com/channel/UCBDHOr2HKOuMiWUj-Pu-AGA
-- Grep: https://www.codegrepper.com/app/profile.php?id=3325

Tags:

Sql Example