0% found this document useful (0 votes)
28 views

C Basic Program

Uploaded by

sanchita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

C Basic Program

Uploaded by

sanchita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 4

C Basic Program

1. Create Pyramid and Pattern

2. Check whether a number is prime or not

3. Find factorial of a number

4. Check whether a number is palindrome or not

5. "Hello World!" Program - Print a sentence

6. C "Hello, World!" Program

7. C Program to Print an Integer (Entered by the User)

8. C Program to Add Two Integers

9. C Program to Multiply Two Floating-Point Numbers

10. C Program to Find ASCII Value of a Character

11. C Program to Compute Quotient and Remainder

12. C Program to Find the Size of int, float, double and char

13. C Program to Demonstrate the Working of Keyword long

14. C Program to Swap Two Numbers

15. C Program to Check Whether a Number is Even or Odd

16. C Program to Check Whether a Character is a Vowel or Consonant

17. C Program to Find the Largest Number Among Three Numbers

18. C Program to Find the Roots of a Quadratic Equation

19. C Program to Check Leap Year

20. C Program to Check Whether a Number is Positive or Negative

21. C Program to Check Whether a Character is an Alphabet or not

22. C Program to Calculate the Sum of Natural Numbers

23. C Program to Find Factorial of a Number


24. C Program to Generate Multiplication Table

25. C Program to Display Fibonacci Sequence

26. C Program to Find GCD of two Numbers

27. C Program to Find LCM of two Numbers

28. C Program to Display Characters from A to Z Using Loop

29. C Program to Count Number of Digits in an Integer

30. C Program to Reverse a Number

31. C Program to Calculate the Power of a Number

32. C Program to Check Whether a Number is Palindrome or Not

33. C Program to Check Whether a Number is Prime or Not

34. C Program to Display Prime Numbers Between Two Intervals

35. C Program to Check Armstrong Number

36. C Program to Display Armstrong Number Between Two Intervals

37. C Program to Display Factors of a Number

38. C Programming Code To Create Pyramid and Structure

39. C Program to Make a Simple Calculator Using switch...case

40. C Program to Display Prime Numbers Between Intervals Using Function

41. C Program to Check Prime or Armstrong Number Using User-defined Function

42. C Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers

43. C Program to Find the Sum of Natural Numbers using Recursion

44. C Program to Find Factorial of a Number Using Recursion

45. C Program to Find G.C.D Using Recursion

46. C Program to Convert Binary Number to Decimal and vice-versa

47. C Program to Convert Octal Number to Decimal and vice-versa


48. C Program to Convert Binary Number to Octal and vice-versa

49. C program to Reverse a Sentence Using Recursion

50. C program to calculate the power using recursion

51. C Program to Calculate Average Using Arrays

52. C Program to Find Largest Element in an Array

53. C Program to Calculate Standard Deviation

54. C Program to Add Two Matrices Using Multi-dimensional Arrays

55. C Program to Multiply Two Matrices Using Multi-dimensional Arrays

56. C Program to Find Transpose of a Matrix

57. C Program to Multiply two Matrices by Passing Matrix to a Function

58. C Program to Access Array Elements Using Pointer

59. C Program Swap Numbers in Cyclic Order Using Call by Reference

60. C Program to Find Largest Number Using Dynamic Memory Allocation

61. C Program to Find the Frequency of Characters in a String

62. C Program to Count the Number of Vowels, Consonants and so on

63. C Program to Remove all Characters in a String Except Alphabets

64. C Program to Find the Length of a String

65. C Program to Concatenate Two Strings

66. C Program to Copy String Without Using strcpy()

67. C Program to Sort Elements in Lexicographical Order (Dictionary Order)

68. C Program to Store Information of a Student Using Structure

69. C Program to Add Two Distances (in inch-feet system) using Structures

70. C Program to Add Two Complex Numbers by Passing Structure to a Function

71. C Program to Calculate Difference Between Two Time Periods


72. C Program to Store Information of Students Using Structure

73. C Program to Store Information Using Structures with Dynamically Memory Allocation

74. C Program to Write a Sentence to a File

75. C Program to Read a Line From a File and Display it

76. C Program to Display its own Source Code as Output

77. C Programming Code To Create Pyramid and Pattern

You might also like