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

PPS Lab-WEEK 2

Uploaded by

Python macho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

PPS Lab-WEEK 2

Uploaded by

Python macho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

WEEK 1:

- Write a C Program to calculate the area and perimeter of square, rectangle and triangle
(use symbolic constants)
- Write a C program to find the greatest and smallest of two numbers using conditional
operator
WEEK 2:
- Write a C program to calculate the distance, convert temperature from celsius to
fahrenheit, calculate compound interest (use type casting)
- Write a C program to find roots of a quadratic equation
- Write a C program to read a character and check whether it is an alphabet or digit or
space or punctuation character or special character (use character handling functions)
- Write a C program to read a character and check whether it is vowel or consonant
- Write a C program to find greatest and smallest of three numbers
- Write a C program to find grade of a student
- Write a C program to read a single character from a text and abbreviate it
- Write a C program to implement storage classes
- Write a C Program to read a single digit and print it in words
WEEK 3:
- Write a C program to read a number and check whether it is palindrome or not
- Write a C program to find factorial of a number
- Write a C program to print nth multiplication table
- Write a C program to find GCD of two numbers
- Write a C program to print fibonacci series below n
- Write a C program to simulate arithmetic calculator using menu based option
- Write a C program to print prime numbers below range n
- Write a C program to print perfect numbers below range n
- Write a C program to read a number and check whether it is prime or not (using break)
- Write a C program to reduce a read number to a single digit (using break)
- Write a C program to print following patterns
1 1 1 2 3 3 3 3 1
1 2 2 2 1 2 2 2 2 3
1 2 3 3 3 3 1 1 4 5 6
- Write a C program to print pascal’s triangle
- Write a C program to read a number and check whether it is adam or not
- Write a C program to implement continue and goto unconditional statement
WEEK 4:
- Write a C program to find maximum and minimum element in an array
- Write a C program to find avg of numbers in an array
- Write a C program to search an element in an array using Linear search
- Write a C program to search an element in an array using Binary search
- Write a C program to sort an array using Bubble sort
- Write a C program to sort an array using Insertion sort
- Write a C program to sort an array using Selection sort
WEEK 5:
- Write a C program to read a string (use scanf(“%s”), gets())
- Write a C program to read a string and count the number of alphabets, numbers, words,
punctuation symbols, special characters
- Write a C program to find length of a string
- Write a C program to copy one string to another string
- Write a C program to read a string and reverse that string
- Write a C program to read a string and check whether it is palindrome or not
- Write a C program to use string handling functions
WEEK 6:
- Write a C Program to read a matrix and find sum of elements in a matrix
- Write a C program to read a matrix and check whether it is an identity matrix or not
- Write a C program to perform matrix addition
- Write a C program to perform matrix multiplication
- Write a C program to read an array of strings (use different methods)
- Write a C program to sort an array of strings

You might also like