Advertisement

PROBLEM SOLVING USING C LAB Programs -JNTUK(R20)

PROBLEM SOLVING USING C LAB Programs -JNTUK(R20)

PROBLEM SOLVING USING C LAB Programs -JNTUK(R20)

Excercise -1
Write a C program to print a block F using hash (#), where the F has a height of six characters and width of five and four characters.
Write a C program to compute the perimeter and area of a rectangle with a height of 7 inches and width of 5 inches.
Write a C program to display multiple variables.
Excercise -2
Write a C program to calculate the distance between the two points.
Write a C program that accepts 4 integers p, q, r, s from the user where r and s are positive and p is even. If q is greater than r and s is greater than p and if the sum of r and s is greater than the sum of p and q print "Correct values", otherwise print "Wrong values".
Write a C program to convert a string to a long integer.
Excercise -3
Write a C program to convert a string to a long integer.
Write a program in C which is a Menu-Driven program to compute the area of the various geometrical shape.
Write a C program to calculate the factorial of a given number.
Excercise -4
Write a program in C to display the n terms of even natural number and their sum.
Write a program in C to display the n terms of harmonic series and their sum. 1 + 1/2 + 1/3 + 1/4 + 1/5 ... 1/n terms.
Write a C program to check whether a given number is an Armstrong number or not.
Excercise - 5
Write a program in C to print all unique elements in an array.
Write a program in C to separate odd and even integers in separate arrays.
Write a program in C to sort elements of array in ascending order.
Excercise - 6
Write a program in C for multiplication of two square Matrices.
Write a program in C to find transpose of a given matrix.
Excercise - 7
Write a program in C to search an element in a row wise and column wise sorted matrix.
Write a program in C to print individual characters of string in reverse order.

Post a Comment

0 Comments