CSC270 Demo Page with Code 2019
Python
# hello.py # Mickey Mouse # Displays a nice welcoming message. # Works with Python 2 or 3+ versions # To run: # # python3 hello.py # or # python hello.py # from __future__ import print_function def main(): print( "Hello Pluto!" ) main()
C
// hello.c // Minnie Mouse // To compile and run: // // gcc -o hello hello.c // ./hello #include <stdio.h> int main( int argc, char *argv[] ) { printf( "Hello there, Mickey!\n\n" ); return 0; }