0% found this document useful (0 votes)
109 views2 pages

PPS LAB Experiment List

Uploaded by

voltaire.fyz
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)
109 views2 pages

PPS LAB Experiment List

Uploaded by

voltaire.fyz
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/ 2

LABORATORY EXPERIMENT LIST

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


GCU, 2024

SUBJECT: PROGRAMMING FOR PROBLEM SOLVING LAB

Experiment Experiment Title


I BASIC OF C PROGRAMMING:-
a) Write a program to display you name, rollno,branch and semester.
b)Write a program to find:
i. Addition of two numbers.
ii. Subtraction of two numbers.
iii. Multiplication of two numbers.
iv. Division of two numbers.
c)Write a program to find area of :
i)Rectangle. (ii) Circle.(iii)Triangle.
d) Write a program to find simple interest, compound interest and amount.

II CONDITIONAL CONTROL STATEMENTS:-

a) Write a program to check whether given number is odd or even.


b) Write a program to find the greatest among two numbers.
c) Write a program to find the greatest of three numbers.
d) Write a program to check whether a person is eligible for vote or not.
e) Write a program to check whether a given year is leap year or not.
d) Write a program to find the area of a triangle, rectangle and circle using switch case.
e) Write a program to perform addition, subtraction & multiplication of two numbers
using switch case.

III LOOP CONTROL STATEMENT:-


a) Write a program to calculate the sum of all the numbers from 1 to 50 using for loop.
b) Write a program to display your name upto 10 times using while loop.
c) Write a program to print even numbers from 1 to 50 using do-while loop.
d) Write a program to reverse a given no.
e) Write a program to find Fibonacci series.
f) Write a program to find factorial of a no.
g) Write a program to print all the numbers divisible by 2 and 3 between 1 and 50.

IV ARRAY:-
a) Write a program to read and display an array of elements.
b) Write a program to find position of an element in an array.
c) Write a program to addition of two matrixes.

FUNCTIONS:-
V a) Write a program for swapping of two numbers using functions.
b) Write a program to find the factorial of a number using function.
c) Write a program in C to check whether a number is a prime number or not using
the function.
d) Write a program in C to check Armstrong and Perfect numbers using the
function.
VI POINTER:-
a) Write a program in C to show the basic declaration of a pointer.
b) Write a program in C to demonstrate the use of the & (address of) and *(value
at address) operators.
c) Write a program in C to add numbers using call by reference.
d) Write a program in C to read and display array elements using pointer.
VII STRING:-
a) Write a program in C to input a string and print it.
b) Write a program in C to find the length of a string without using library
functions.
c) Write a program in C to count the total number of words in a string.
d) Write a program in C to compare two strings without using string library
functions.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy