Wednesday, April 11, 2018

C on the go - 2- Variables

Video:-  https://www.youtube.com/watch?v=d9bWO9DASjQ

References: https://www.tutorialspoint.com/learn_c_by_examples/index.htm
                    https://www.learn-c.org/en

Notes:-

int op1, op2, sum;      // variable declaration

   op1 = 5;                // variable definition
   op2 = 3;

   sum = op1 + op2;        // addition operation

printf("sum of %d and %d is %d", op1, op2, sum);

No comments:

Post a Comment