Lecture 2 - Basic of Programming
Lecture 2 - Basic of Programming
PROGRAMMING
LECTURE 2 – BASICS OF PROGRAMMING
TOPICS
http://csharp-station.com
Unit 1 - Programming / Lecture 2 - Basics of programming 4
STATEMENTS/COMMENTS
Data
Variable
Variable has:
• Name: grade, age, salary
Variable is used to store data • Type: integer, float, string
• Data (value): 100, 10.5, “John”
Data
Data
Variable
variable Data
Data
Exercise
o Print numbers up to 10
o Print even numbers up to 10
o Print odd numbers up to given n