Posted in All Posts, Semester 1

Sem 1 – PSCP Unit 3 Programs

PSCP – Problem Solving & C Programming

Unit 3 : Using Control Statements

1. Program to input an integer n and evaluate the value of the given series – 1 + 1/2² + 1/3³ + 1/44 + … 1/nn
Download

2. Program to input a number from user until 999 is entered. Count and display count of odd and even numbers from the numbers entered.
Download

3. Program to accept an integer and generate of first n prime numbers.
Continue reading “Sem 1 – PSCP Unit 3 Programs”

Posted in All Posts, Semester 1

Sem 1 – PSCP Unit 2 Programs

PSCP – Problem Solving & C Programming

UNIT 2 : Using Conditional Statements

1. Program to check whether no. is positive, negative or zero.
Download

2. Program to mind maximum of three numbers.
Download

3. Program to check whether a person is eligible to donate blood. The conditions are as follows :
a. Age should be above 18 yrs but less than 55 yrs.
b. Weight should be more than 45 kgs.
Continue reading “Sem 1 – PSCP Unit 2 Programs”