Mic

Hello, World!

helloworld.c
1
2
3
4
5
6
7
8
9
/* Hello world program in C */

#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("Hello, World!\n");
    return 0;
}
helloworld.cpp
1
2
3
4
5
6
7
8
9
10
// Hello world program in C++

#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    cout << "Hello World!\n";
    return 0;
}

Comments