C Lab Assignment

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

University Department of Computer Applications

Vinoba Bhave University, Hazaribag


Course: IMCA Subject: C Programming Lab
Semester: 1st Paper Code: BCA P1007

1. Write a program that will print your home address.


2. Write a program that will print the area of circle, square, rectangle and triangle.
3. Write a program that covert temperature from Celsius to Fahrenheit and vice versa.
4. Write a program to find simple interest and compound interest.
5. Write a program that finds average of a set of N numbers.
6. Write a program that illustrate the different storage classes.
7. Write a program that prints the even and odd numbers from 1 to 100.
8. Write a program that finds the greatest number between two numbers.
9. Write a program that finds the greatest number among three numbers.
10.Write a program that shows the use of conditional operator.
11.Write a program that counts number of student whose weight & height is less than 50kg
& 170cm resp.
12.Write a program that shows the use of forward jump & backward jump of goto statement.
13.Write a program to find the number of and sum of all integers greater than 100 and less
than 200 that are divisible by 7.
14.Write a program that finds whether entered number is prime or not.
15.Write a program that finds whether entered number is Armstrong or not.
16.Write a program that shows the use of break and continue statement.
17.Write a program to find factorial of a number.
18.Write a program to find first n Fibonacci number.
19.Write a program to print the pattern as shown below:
* * * * * * * * * 1
* * * * * * * * 2 2
* * * * * * * 3 3 3
* * * * * * 4 4 4 4
20.Write a program to find reverse of a number.
21.Write a program to check whether entered number is palindrome or not.
22.Write a program that reads marks of 50 students and count the number of students
belonging to each of following groups of marks: 0-10, 11-20, 21-30, 31-40 .......91-100
using array.
23.Write a program that shows the matrix addition.
24.Write a program that shows the use of switch statement.
25.Write a program that read a line of text containing a series of words using of getchar()
and putchar() function.
26.Write a program that shows the difference between scanf() and gets() for string.
27.Write a program that uses the different types of string handling functions.
28.Write a program to find factorial using recursion.
29.Write a program to find Fibonacci series using recursion.
30.Write a program that swaps two numbers using third variable and without using third
variable.
31.Write a program that swaps two numbers using call by value and call by address.
32.Write a program for the followings:
a. Function with no arguments and no return values
b. Function with arguments and no return values
c. Function with arguments and one return value
d. Function with no arguments and one return value
e. Function that return multiple return value
33.Write a program that shows the nesting of functions.
34.Write a program to pass array into function.
35.Write a program to read and print employee’s details using structure.
36.Write a program to demonstrate use of arrays of structures and array within structure
37.Write a program that shows the union features.
38.Write a program to illustrate the use of indirection operator (*) to access the value pointed
by a pointer.
39.Write a program that shows the use of chain of pointer.
40.Write a program using pointer to compute the sum of all elements stored in an array.
41.Write a program using pointer to determine the length of character string.
42.Write a program that uses pointer as a function argument.
43.Write a function that return pointer.
44.Write a program to illustrate the use of structure pointer.
45.Write a program to read data from the keyboard, write it to a file called INPUT, again read
the same data from the INPUT file, and display it on the screen.

-------------------XXXXXXXXXX----------------------

You might also like