W3Schools Tryit Editor

PHOTO EMBED

Thu Feb 23 2023 16:57:23 GMT+0000 (Coordinated Universal Time)

Saved by @vishpriya412 #undefined

#include <stdio.h>
​
int main() {
  // Create a myNum variable and assign the value 15 to it
  int myNum = 15;
  
  // Declare a myOtherNum variable without assigning it a value
  int myOtherNum;
​
  // Assign value of myNum to myOtherNum
  myOtherNum = myNum;
​
  // myOtherNum now has 15 as a value
  printf("%d", myOtherNum);
  
  return 0;
}
content_copyCOPY

https://www.w3schools.com/c/tryc.php?filename