0% found this document useful (0 votes)
48 views16 pages

PPS File

This document contains a practical file submitted by Vasu for their first semester CSE program at Maharshi Dayanand University. It includes 12 programs related to topics like temperature conversion, solving quadratic equations, calculating circle area and perimeter, swapping variables, computing series sums, factorials, Fibonacci series, greatest common divisor, character checking, pattern printing, reversing digits, and string operations. For each program, the input and output for sample test cases are documented.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views16 pages

PPS File

This document contains a practical file submitted by Vasu for their first semester CSE program at Maharshi Dayanand University. It includes 12 programs related to topics like temperature conversion, solving quadratic equations, calculating circle area and perimeter, swapping variables, computing series sums, factorials, Fibonacci series, greatest common divisor, character checking, pattern printing, reversing digits, and string operations. For each program, the input and output for sample test cases are documented.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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