Wednesday, April 11, 2018

C on the go - 3- \n to set a new line

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


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

 
Notes:-

  printf( "Hello, World\n" ); //we will need to call the function printf to print our sentence. \n is used to set a new line

   int op1, op2, sum, sub;      // variable declaration

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

   sum = op1 + op2;        // addition operation

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




Check out the C programming playlist at https://www.youtube.com/playlist?list=PLDMwfcFQi85p0B1w3o6gLaVQ6eOkCHJz5

No comments:

Post a Comment