fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. int i = 10 ; // Declare and initialize 'i' with 10
  6. int j = i ;
  7. int a = 2 ,b = 3 ,c = 4 ,d = 5;
  8. // %d is called format specifier
  9. // %d is for int, %f is for float and %c is for cher
  10.  
  11. printf("The value of i is %d and value of j is %d \n " , i,j);
  12. printf("The value of a is %d and value of b is %d \n " , a,b);
  13. printf("The value of c is %d and value of d is %d \n " , c,d);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
The value of i is 10 and value of j is 10 
 The value of a is 2 and value of b is 3 
  The value of c is 4 and value of d is 5