Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
25 views

Programming Language C Assignment-1

The document outlines a programming assignment for C language that includes 29 different tasks. These tasks range from calculating areas, converting temperatures, checking leap years, to generating Fibonacci series and prime numbers. Each task requires writing a specific C program to achieve the desired functionality.

Uploaded by

sasmita8687
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Programming Language C Assignment-1

The document outlines a programming assignment for C language that includes 29 different tasks. These tasks range from calculating areas, converting temperatures, checking leap years, to generating Fibonacci series and prime numbers. Each task requires writing a specific C program to achieve the desired functionality.

Uploaded by

sasmita8687
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

IGIT, SARANG

PROGRAMMING LANGUAGE C ASSIGNMENT

Programs it has: -
1. Write a C program to calculate area of circle.
2. Write a C program to calculate area of rectangle.
3. Write a C program to convert Fahrenheit to Celsius.
4. Write a C program to calculate largest number between 2 numbers.
5. Write a C program to check whether a year is a leap year or not.
6. Write a C program to calculate the simple interest of amount.
7. Write a C program to calculate the distance between two points.
8. Write a C program to calculate the area of triangle using Heron’s formula.
9. Write a C program to swap numbers using 3rd variable.
10. Write a C program to print the digit one place of the number.
11. Write a C program to swap two number without using temporary variable.
12. Write a C program to determine whether an internal character is a vowel or not using switch case statement.
13. Write a C program to find the sum of individual digits of positive integers.
14. Write a C program to enter a character, if the character is upper case- change into lower case and vice versa.
15. Write a C program to print “I LOVE IGIT” 100 times.
16. Write a C program to find both largest and smallest number in a list of integers.
17. Write a C program to find the square of first ‘n’ integers using do-while loop.
18. Write a C program to display Fibonacci series using for-loop.
19. Write a C program to display the following pattern.
*
**
***
****
*****
20. Write a C program to find average of numbers between two ranges using do- while loop.
21. Write a C program to print first 50 prime numbers.
22. Write a C program to find the Binary equivalent of a number.
23. Write a C program to print prime numbers within 50 to 2000.
24. Write a C program to print the following; 12+22+32+……+n2 .
25. Write a C program to print 1/12+1/22 +1/32 +…..+1/n2 .
26. Write a C program to convert hours to minutes using function.
27. Write a C program to swap two numbers using function.
28. Write a C program to calculate the sum of first 100 natural numbers using function.
29. Write a C program to find whether a number is even or odd.

You might also like