PPS File

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

UNIVERSITY INSTITUTE OF

ENGINEERING & TECHNOLOGY

MAHARSHI DAYANAD UNIVERSITY


ROHTAK

PRACTICAL FILE
OF
PPS

SUBMITTED TO: SUBMITTED BY:


DR. VIKAS SIWACH VASU
UIET, MDU CSE-B(1stSEMESTER)
ROLL NO.- 2214082

INDEX
S NO. PROGRAM REMARKS
1. Convert degree Celsius into
degree Fahrenheit
2 Find the Roots of
Quadratic Equation

3 Area and Perimeter of


Circle
4 Swap two variables
without using a third
variable using Call by Value
and Call by Reference
5 Print & find sum of series
1+1/2+1/3+1/4+…..+1/n

6 Find factorial of the


number (with and without
recursion)
7 Fibonacci series up to five
numbers
8 Find Greatest Common
Divisor

9 Check lowercase alphabets

10 Print the pattern

11 Reverse the given digit and


find its sum.
12 Concatenate and compare
the two strings
PROGRAM 1 :->
Convert degree Celsius into degree Fahrenheit
INPUT:-

OUTPUT:-

PROGRAM 2 :->
Find the Roots of Quadratic Equation.
INPUT:-

OUTPUT:-

PROGRAM 3 :->
Area and Perimeter of Circle
INPUT:-

OUTPUT:-

PROGRAM 4 :->
Swap two variables without using a third variable
using Call by Value and Call by Reference
Call by Value
INPUT:-

OUTPUT:-

Call by Reference
INPUT:-
OUTPUT:-

PROGRAM 5 :->
Print & find sum of series 1+1/2+1/3+1/4+…..+1/n.
INPUT :-

OUPUT :-

PROGRAM 6 :->
Find factorial of the number (with and without
recursion)
With Recursion
INPUT:-

OUTPUT:-

Without Recursion
INPUT:-
OUTPUT:-

PROGRAM 7 :->
Fibonacci series up to five numbers
INPUT:-

OUTPUT:-

PROGRAM 8 :->
Find Greatest Common Divisor
INPUT:-
OUTPUT:-

PROGRAM 9:->
Check lowercase alphabets
INPUT:-
OUTPUTS:

PROGRAM 10:->
Print the pattern :-
1
12

123

1234

12345

INPUT:-

OUTPUT:-

PROGRAM 11:->
Reverse the given digit and find its sum.
INPUT:-
OUTPUT:-

PROGRAM 12:->
concatenate and compare the two strings
INPUT:-
OUTPUT:-

You might also like