You are on page 1of 1

*PFC - Workshop #01

Study hard. Do good


and the good life
will follow.

Part-1: Coding: 30

Part-2: Coding: 70%

Topic (s):

• A simple C Program implementing standard output and simple operation


• Using Dev-C++ for making program, edit, debug, and execute c-language
• To describe to your instructor what you have learned in completing this workshop (if any by
comment inside code)
• Upload source code file to CMS system on due date

Submit policy:

• Workshop#1 is due date on 7/1/2022(Friday), particular the deadline is end of 8/1/2022 by


23:59 (VietNam zone time)
• Late submission will not be accepted and mark will be Zero.

All file you create or modify must contain following two pieces of information:

✓ Full name (Student number)


✓ Source code (file .exe, file .c or .cpp)

Part-1(30%)

Create a C program that display to the standard output:

*Welcome to the PRF192 course*

Note: highlighted in yellow color are to be printed

Part-2(70%)

Write a program that performs the following works:


1. Input integer even number n.
2. Calculate S1 = 1 + 3 + ... + (n+1)
3. Calculate S = n!
4. Calculate
S2 =1+ + +...+

You might also like