repl.it
@launcherman08/

My First C Program

C

Just started learning C, so this is my program

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#define BOOL char
#define FALSE 0
#define TRUE 1
int main() {
  int foo;
  int bar = 1;
  int a = 0,b=1,c=2,d=3,e=4;
  a = b - c + d * e;
  printf("%d", a);
}