The C Programming Language


1. History of the C language
C programming language is a computer programming language created by Dennis Ritchie at AT & T's Bell Laboratories of USA in 1972.

2.Why do we learn C

C programming language, a computer needed to compile a grim better language Basic.
C language features easy-to-understand language and standards that can reach easily to other languages such as: C ++, Visual C ++, Java ....

3. If and If...else statement 

if statement
Syntax1
1.if(expression){
2.statements;
3.}

Syntax2
1.if(expression)
2.statement;
If else statement
Syntax
1.if(expression){
2.statements;
3.}
4.else{
5.statements;
6.}

4.Using Alternative

Alternative expression and it is similar to the if () ... else Statement, but has a different form. Alternative forms when conditions form only under conditions.
common forms
1.Expression1? Expression2: Expresion3;
- Expression1 Expression2 be applied
- False Expression1 Expression3 be applied
Example 1: The price of the two largest integer
\

01.#include
02.#include
03. 
04.void main()
05.{ int max = 0;
06.int a = 5;
07.int b = 10;
08. 
09.max = a>b?a:b;
10.printf("Max = %d",max);
11. 
12.getch();
13.}