Session 3
Session 3
to C Session
3
Example 1
Escape Codes
int a,b;
float total, sub_total;
Variable
Assignment
Int main()
{
Int x;
Printf(“enter a
number\n”)
scanf("%d", &x);
Printf(“%d”,x);
}
reads a decimal integer from the
keyboard and assigns it to the integer
variable x
Example 1
Explanation