0% found this document useful (0 votes)
2 views5 pages

PSP LAB Assignment 4

This document outlines Assignment 4 for a Problem Solving and Programming Lab, authored by Ashmit Amit Kohli. The assignment includes tasks such as checking for prime and Armstrong numbers, converting binary to decimal, finding perfect numbers, swapping arrays, determining maximum and minimum values in an array, and calculating factorials using recursion. Each task requires the use of functions to implement the solutions.

Uploaded by

ashmitkohli07
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)
2 views5 pages

PSP LAB Assignment 4

This document outlines Assignment 4 for a Problem Solving and Programming Lab, authored by Ashmit Amit Kohli. The assignment includes tasks such as checking for prime and Armstrong numbers, converting binary to decimal, finding perfect numbers, swapping arrays, determining maximum and minimum values in an array, and calculating factorials using recursion. Each task requires the use of functions to implement the solutions.

Uploaded by

ashmitkohli07
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

Problem Solving And Programming Lab

Assignment 4

Name: Ashmit Amit Kohli

Class: AIDS-C Batch: C2

Roll No: 35 PRN: 1251010356

1. Check prime and Armstrong number by using functions.


2. Convert a binary number to decimal and vice-versa
3. Write a program to find perfect number in between 1 to 50 using
function.

4. Write a program to swap two arrays using function. (Call by value)


5. Write a program to find maximum and minimum number in an array
using functions.
[Link] the factorial of a number using recursion

You might also like