fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. // create and print the distance variable
  6. int distance = 135;
  7. printf("%d" , distance);
  8.  
  9. // create the newDistance variable
  10. int newDistance = 429;
  11. // assign newDistance to distance and print distance in a separate line
  12. distance = newDistance
  13. distance = 429;
  14.  
  15. printf("%d" , newDistance);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.02s 25768KB
stdin
Standard input is empty
stdout
#include <stdio.h>

int main() {

    // create and print the distance variable
    int distance = 135;
    printf("%d" , distance);

    // create the newDistance variable
    int newDistance = 429;
    // assign newDistance to distance and print distance in a separate line
    distance = newDistance
    distance = 429;

    printf("%d" , newDistance);

    return 0;
}