2009年10月5日 星期一

我是一個飯粒

//第2章 - 25頁範例



#include <stdio.h>
int main(void)               /* a simple program             */
{
   int num;                  /* define a variable called num */
   num = 1;                  /* assign a value to num        */

   printf("I am a simple "); /* use the printf() function    */
   printf("我是一個飯粒 \n"); /* use the printf() function    */
   printf("computer.");
   printf("電腦.\n");
   printf("My favorite number is %d because it is first.\n",num);
   printf("我最愛的數字是 %d 因為他是第一個數字。\n",num);
   getchar();
   return 0;
}

沒有留言:

張貼留言