跳至内容

Let Us GCC/Code 1.3

来自维基文库,为开放世界准备的开放图书

旧代码

[编辑 | 编辑源代码]
/* Just for fun. Author: Bozo */
main( )
{
    int num ;

    printf ( "Enter a number" ) ;
    scanf ( "%d", &num ) ;

    printf ( "Now I am letting you on a secret..." ) ;
    printf ( "You have just entered the number %d", num ) ;
}

新代码

[编辑 | 编辑源代码]
/* Just for fun. Author: Bozo */
/* Editor GReaperEx Date: 19/7/2015 */

#include <stdio.h>

int main(void)
{
    int num;

    printf("Enter a number");
    scanf("%d", &num);

    printf("Now I am letting you on a secret...");
    printf("You have just entered the number %d", num);

    return 0;
}
华夏公益教科书