Introduction to Computers

Homework 10, Due 12/15 (Thursday)

1.  Write a program that inputs one integer n from the keyboard, calculates the sum of 1+2+3+...+n, and outputs the result.

Reference: 10.c  

 

ftp your homework (c source file and one sample run result saved as a JPEG file) to

ftp://aca071@ftp.csie.nuk.edu.tw

in the directory upload\HW10

by the following format:

主旨:hw#_班級_學號_題號

檔案名稱:hw#_班級_學號_題號.c

例如:應化一同學,作業1

    檔案名稱:hw1_AC_a0925124_01.xxx (depending on the file type)

The password is given in class.