Changeset 26 for trunk/hello.c


Ignore:
Timestamp:
Apr 18, 2014, 8:10:14 AM (11 years ago)
Author:
Mattia Monga
Message:

Programmi 2014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hello.c

    r6 r26  
     1/* Copyright (C) 2014 by Mattia Monga <mattia.monga@unimi.it> */
     2/* $Id$ */
     3
    14#include <stdio.h>
    2 #include <unistd.h>
    3 #include <stdlib.h>
    45
    5 int main(void){
    6   int i;
    7   for (i=0; i<10; i++){
    8     printf("Hello world! (%d)\n", i+1);
    9     sleep(1);
    10   }
    11   exit(0);
     6int main(){
     7    printf("Ciao %d %s", 5, "mamma");
     8    asm("mov eax, 0");
     9    return 0;
    1210}
     11
     12/* Local Variables: */
     13/* compile-command: "make -k " */
     14/* End: */
Note: See TracChangeset for help on using the changeset viewer.