Assignment - 5 C Language LIVE Community Classes MySirG
The document contains 10 programming assignments involving calculating mathematical expressions including: the sum of two numbers, area of a circle, volume of a cuboid, simple interest, area of a rectangle, average of three numbers, square of a number, ASCII code of a character, profit percentage based on cost and selling price, and area of a triangle given the base and height.
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 ratings0% found this document useful (0 votes)
123 views1 page
Assignment - 5 C Language LIVE Community Classes MySirG
The document contains 10 programming assignments involving calculating mathematical expressions including: the sum of two numbers, area of a circle, volume of a cuboid, simple interest, area of a rectangle, average of three numbers, square of a number, ASCII code of a character, profit percentage based on cost and selling price, and area of a triangle given the base and height.
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/ 1
Assignment - 5 C Language LIVE Community Classes MySirG
1. Write a program to calculate the sum of two numbers.
2. Write a program to calculate the area of a circle. 3. Write a program to calculate the volume of a Cuboid. 4. Write a program to calculate the simple interest 5. Write a program to calculate the area of a rectangle 6. Write a program to calculate the average of three numbers 7. Write a program to calculate the square of a given number. 8. Write a program which takes a character as input and print its ASCII code. 9. Write a program to calculate the profit percentage upon selling a product. Cost price and selling price are given by the user. 10. Write a program to calculate the area of a triangle where base and height of the triangle are given.