CTSD Y23 Sec-3
27/07/23
Write a C language program to print “Welcome to KL University”.
Write a C language program to print your name, DOB, Father’s name, Mother’s name, phone number and
hobbies in different lines.
Write a C language program to print each letter of your name in different line.
Write a C language program to display integer variable value stored in an integer variable ‘x’ and a float
variable value in a float variable value ‘y’.
Write a C language program to find the area and perimeter of a rectangle for the given length and breadth.
Write a C language program to find the sum and average of three numbers (integer).
Write a C language program to swap two given float numbers.
Write a C language program to find the temperature in Fahrenheit for the given temperature in Celsius.
28-07-23
Ravi is having ‘x’ rupees. He has decided to buy chocolates where each chocolate is ‘y’ rupees. Write a C
language program to find the number of chocolates he can buy and also find out how much money is left out
after buying chocolates.
Write a C language program to calculate total amount to but ‘x’ kg of potato, ‘y’ kg of tomato and ’z’ kg of
brinjal. If cost of tomato, potato and brinjal are ’a’, ’b’ and ’c’ respectively.
01/08/23
Write a C language program to convert height given in feet and inches to centimetres.
Write a C language program to find the total score of Ram if he scored ‘x’ sixes, ’y’ fours, ’z’ threes, ’i’
doubles and ‘j’ singles. Also find his strike rate.
Write a C language program to find the area and perimeter of a circle whose radius is given.
02/08/23
Write a C language program to find the age of a person for the given birth year.
Write a C language program to number of months and days for the given birth month and year.
Write a C language program to find number of years for the given birth year, month and day.
03/08/23
Write a C language program to find the area of a right angled triangle for the given base and height.
Write a C language program to convert height given in centimetres to feet and inches (in the format of ft’
in’’).
Write a C language program to find the annual salary of an employee whose monthly income is given.
04/08/23
Write a C language program to calculate the square root of a number.
Write a C language program to find the semi-perimeter and area of a triangle with sides a, b, c.
KL University is having ’x’ students and there are 4 courses B.TECH, MBA, BBA, BCA. 50% of students are
B.TECH, 20% of them are MBA, 10% of them are BBA and the rest MBA. Write a C language program to find
number of students in each course.
Write a C language program to find the volume of a cone.
Shiva is giving a birthday party to x number of his friends. He ordered 2x samosas, 3x chocolates and 100g
cake for each person. let samosa cost be “I”, chocolate be "j" and cake is "k” per kg. Find the total price Shiva
need to spend to give his friends a birthday party.
27/07/23
Write a C language program to print “Welcome to KL University”.
Write a C language program to print your name, DOB, Father’s name, Mother’s name, phone number and
hobbies in different lines.
Write a C language program to print each letter of your name in different line.
Write a C language program to display integer variable value stored in an integer variable ‘x’ and a float
variable value in a float variable value ‘y’.
Write a C language program to find the area and perimeter of a rectangle for the given length and breadth.
Write a C language program to find the sum and average of three numbers (integer).
Write a C language program to swap two given float numbers.
Write a C language program to find the temperature in Fahrenheit for the given temperature in Celsius.
28-07-23
Ravi is having ‘x’ rupees. He has decided to buy chocolates where each chocolate is ‘y’ rupees. Write a C
language program to find the number of chocolates he can buy and also find out how much money is left out
after buying chocolates.
Write a C language program to calculate total amount to but ‘x’ kg of potato, ‘y’ kg of tomato and ’z’ kg of
brinjal. If cost of tomato, potato and brinjal are ’a’, ’b’ and ’c’ respectively.
01/08/23
Write a C language program to convert height given in feet and inches to centimetres.
Write a C language program to find the total score of Ram if he scored ‘x’ sixes, ’y’ fours, ’z’ threes, ’i’
doubles and ‘j’ singles. Also find his strike rate.
Write a C language program to find the area and perimeter of a circle whose radius is given.
02/08/23
Write a C language program to find the age of a person for the given birth year.
Write a C language program to number of months and days for the given birth month and year.
Write a C language program to find number of years for the given birth year, month and day.
03/08/23
Write a C language program to find the area of a right angled triangle for the given base and height.
Write a C language program to convert height given in centimetres to feet and inches (in the format of ft’
in’’).
Write a C language program to find the annual salary of an employee whose monthly income is given.
04/08/23
Write a C language program to calculate the square root of a number.
Write a C language program to find the semi-perimeter and area of a triangle with sides a, b, c.
KL University is having ’x’ students and there are 4 courses B.TECH, MBA, BBA, BCA. 50% of students are
B.TECH, 20% of them are MBA, 10% of them are BBA and the rest MBA. Write a C language program to find
number of students in each course.
Write a C language program to find the volume of a cone.
Shiva is giving a birthday party to x number of his friends. He ordered 2x samosas, 3x chocolates and 100g
cake for each person. let samosa cost be “I”, chocolate be "j" and cake is "k” per kg. Find the total price Shiva
need to spend to give his friends a birthday party.