W3Schools Tryit Editor

PHOTO EMBED

Thu Feb 23 2023 18:00:05 GMT+0000 (Coordinated Universal Time)

Saved by @vishpriya412 #undefined

#include <stdio.h>
​
int main() {
  int sum1 = 100 + 50;        // 150 (100 + 50)
  int sum2 = sum1 + 250;      // 400 (150 + 250)
  int sum3 = sum2 + sum2;     // 800 (400 + 400)
  printf("%d\n", sum1);
  printf("%d\n", sum2);
  printf("%d\n", sum3);
  return 0;
}
content_copyCOPY

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