"Hello World!" in C

Sort by

recency

|

673 Discussions

|

  • + 0 comments

    include

    void main() { printf("hello world");

  • + 0 comments

    For C

    I wrote the code from scratch just to get more practice

    #include<stdio.h>
    
    int main()
    {
        char s[100];
        scanf("%[^\n]", s);
        
        printf("Hello, World!\n");
        printf("%s", s);
        
        return 0;
    }
    
  • + 0 comments

    include

    include

    include

    include

    int main() {

    char s[100];
    scanf("%[^\n]%*c", &s);
    
    printf("Hello, World!\n");
    printf("%s\n",s);
    return 0;
    

    }

  • + 0 comments

    include

    int main( ) { printf("Hello World!"); printf("Welcome to C programming."); return 0; }

  • + 0 comments

    i wrote this code corrwhy it gives error