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

C PGM Questions

Uploaded by

ANISHYA P IT
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)
26 views2 pages

C PGM Questions

Uploaded by

ANISHYA P IT
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

1. Write a C program to find the area and circumference of a circle.

2. Write a C program to calculate the simple interest.

1. Write a C program to find the sum and product of given two numbers.
2. Write a C program for temperature from fahrenheit to celsius and Celsius to
Fahrenheit.
Write a C Program using Conditional / Ternary and sizeof Operators.
write a C program to check whether a given year is a leap year or not using if-else statement.
write a C Program to find the biggest of given three numbers using nested if –else
statement.
write a C program to prepare the electricity bill using else if ladder statement. An
electricity charges its domestic consumers as follows:

Consumption in Units Rate of Charge


0 – 100 Rs. 0.50 / Unit
101 – 200 Rs. 50 + Rs.0.75 / Unit
201 – 300 Rs. 125 + Rs.1.00 /
Unit
Above 300 Rs. 225 + Rs.1.50 /
Unit
Prepare the amount to be paid by the consumer.

write a C program to design a calculator to perform the operations, namely,


addition, subtraction, multiplication, division and square of a number using switch –
case statement.

write a C program to print number series using break statement.


write a C program to print number series using continue statement.
write a C program to print multiplication table using goto statement.
write a C program to find the sum of n natural numbers using for loop.
Write a C program to print fibonacci series for the given n using while loop.
write a C program to check whether a given number is armstrong number or not using
do-while loop.
write a C program to sort an array element using selection sort.
write a C program to add and subtract two matrices.
write a C program to multiply two matrices.
write a C program to print 3D array elements along with its index.
write a C program to perform traversing operation of an array.
Ex 5:write a C program to perform string manipulation function like find the length of the
string , string copy,string comparision, string concatenation, to convert upper and lower case
of the string and string reverse.
write a C program to print the given string using functions.
write a C program to add two numbers using functions.
write a C program to find the area of triangle using functions.
write a C program to find the cube of given value using functions.
write a C program to swap two numbers using parameter passing method pass by value.
write a C program to swap two numbers using parameter passing method pass by reference.
write a C program to find the smallest element of given array of elements using functions.

write a C program to find the factorial of a given number using recursion.


write a C programe for binary search using recursion.
Write a C program to print the array using pointers
Write a C program to print the given string using pointers.
Write a C program to print the given functions using Pointers.
write a C Program to Store Information of a Student Using Structure

write a C Program to Add Two Complex Numbers by Passing Structure to a Function


To perform the file operation to write data to the file.

To perform the file operations to read the data in a given file & display the file

content on console .

To perform the file operations to Append a file and display content on console .

You might also like