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

Practical of CLanguage

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)
21 views5 pages

Practical of CLanguage

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/ 5

Practical No: 1

Practical Name: Write a C program to find the largest of three


numbers.

Code:

Output:
Practical: 2

Practical Name: Write a C program to compute roots of quadratic


equation ax2+bx+c=0, where a, b and c are three coefficient of a
quadratic equation are inputs.

Code:

Output:
Practical: 3

Practical Name: Design and develop an algorithm to check


weather given number is PALINDROME or NOT. Implement a C
program for the developed algorithm that takes an integer number an
input and output the reverse of the same with suitable messages. Ex:
Num:2019: Reverse: 9102,Not a palindrome.

Code:

Output:
Practical: 4

Practical Name: design and develop a C program to implement


simple calculator using switch case statement.

Code:

Output:
Practical: 5

Practical Name: Write a recursive C function to find the factorial of


a number, n! Define by fact (n) = 1, if n=0. Otherwise fact (n) = n*fact
(n-1).

Code:

Output:

You might also like