PPS Lab External Question Paper Model
PPS Lab External Question Paper Model
5. Expression Evaluation:
Write a C program, which takes two integer operands and one operator from the user,
performs the operation and then prints the result. (Consider the operators +, -, *, /, % and
use Switch Statement)
6. Expression Evaluation:
Write a program that finds if a given number is a prime number
7. Expression Evaluation:
Write a C program to find the sum of individual digits of a positive integer and test given
number
is palindrome.
8. Expression Evaluation:
A Fibonacci sequence is defined as follows: the first and second terms in the sequence are
0 and 1. Subsequent terms are found by adding the preceding two terms in the sequence.
Write a C program to generate the first n terms of the sequence.
9. Expression Evaluation:
Write a C program to generate all the prime numbers between 1 and n, where n is a value
supplied by the user.
25. Write a simple program that prints the results of all the operators available in C