1 of 9

Fundamentals

of Programming (Week 2)

Name: Sheikh Thanbir Alam

Deg: Senior Software Programmer

Org: Army War Game Center, BD Army

2 of 9

How programming language work?

C#

Compile

Low level Language

Assemble

Machine Language

Executing

3 of 9

4 of 9

Let's write few programs on IDE (Basic Syntax)

  1. Let’s Print Our Institute Name in C#.
  2. Let’s Print Our Three Friends Name.
  3. Let's Take Input of Our Parents Name and Print.
  4. Let’s Take Input a Number and Print.
  5. Let’s Take 2 Number and Print the Sum.

5 of 9

Data types.

  1. Integer (–2,147,483,648 to 2,147,483,647)
  2. Long (–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807)
  3. Unsigned Integer & Unsigned Long (0 to 65,535 & 0 to 4,294,967,295)
  4. Float & Double & Long double (7 digit → 32bit & 15 digit→ 64bit & 29 digit → 128bit)
  5. Unsigned Float & Unsigned Double
  6. Char (8Bit)
  7. WChar_t (16 or 32 bit)
  8. String (2^0 to 2^31)
  9. Boolean
  10. Void
  11. Custom (By User Created)

Links:

Integral numeric, Build In Types

6 of 9

Operators

  1. Arithmetic Operators (+, -, *, /, %, ++, - -)
  2. Relational Operators (==, !=, >, <, >=, <=)
  3. Logical Operators (||, &&, !)
  4. Bitwise Operators (&, |, ^)
  5. Assignment Operators
  6. Misc Operators

Links: More Details

7 of 9

Variables

8 of 9

Function

9 of 9