fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. // Write C code here
  5. printf("hello word\n");
  6. int a=1;
  7. int b=2;
  8. int c=a+b;
  9. printf ("%d",c);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5312KB
stdin
// Online C compiler to run C program online
#include <stdio.h>

int main() {
    // Write C code here
    printf("hello word\n");
    int a=1;
    int b=2;
    int c=a+b;
    printf ("%d",c);
    return 0;
}
stdout
hello word
3