Skip to content

The List of C Programs: Getting started with C Programming

Notifications You must be signed in to change notification settings

Aashrut/CPrograms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPrograms

The List of C Programs: Getting started with C Programming

This project is created for students who want to step into the field of Computer Science. Here are the list of C Programs that will help the students to get started with C programming. I included many C programs containing all basic concepts.

List of Programs:

  1. Print Hello World
  2. Print sum of two numbers
  3. Print Area Of circle
  4. Make Basic Calculator Program
  5. Write a program to find area of triangle(a=h*b*0.5), where a = area, h = height, b = base
  6. Write a program to calculate simple interest (i = (p*r*n)/100 ) where i = Simple interest, p = Principal amount, r = Rate of interest, n = Number of years
  7. Write a C program to interchange two numbers
  8. Write a C program to enter a distance into kilometerand convert it into meter, feet, inches and centimeter
  9. Write a program to compute Fahrenheit from centigrade (f=1.8*c +32)
  10. Write a C program to find out distance travelled by a vehicle for time (t) with equation d = u*t + 0.5*a*t^2 where u= velocity and a=acceleration
  11. Write a C program to find that the accepted number is Negative, or Positive or Zero
  12. Write a program to read marks for a single subject of a student. If marks < 36, output the result as 'Fail' otherwise 'Pass'
  13. Write a program to read three numbers from keyboard and find out maximum out of these three
  14. Write a C program to check whether the entered character is capital, small letter, digit or any special character
  15. Write a program to read marks from keyboard and your program should display equivalent grade according to following table. Marks Grade 100 -80 Distinction 79 -60 First Class 59 -40 Second Class < 40 Fail.
  16. Write a c program to prepare pay slip using following data : Da = 10% of basic, Hra = 7.50% of basic, Ma = 300, Pf = 12.50% of basic, Gross = basic + Da + Hra + Ma, Nt = Gross – Pf.
  17. Write a C program to read no 1 to 7 and print relatively day Sunday to Saturday.
  18. Write a menu-driven program for scientific calculator using switch-case statement. (add, sub, mul, div, module, square, square root, power, log).
  19. Write a program to print sum of first n integer numbers using goto statement.
  20. Write a program to check the entered character is vowel or not.
  21. Write a C program to find out the Maximum and Minimum number from given 10 numbers using for, while loop.
  22. Write a C program to input an integer number and check the last digit of number is even or odd using any looping structure.
  23. Program to print sum of individual digits of a given integer using while statement.
  24. Write a program to find out sum of first and last digit of a given number.
  25. Write a program to check whether the given number is prime or not.
  26. Write a program to print first n prime numbers.
  27. Write a C program to find factorial of a given number.
  28. Write a program to generate first n number of Fibonacci series.
  29. Write a program that accept a string and count the number of space character, tab character, new line character, and any other characters.
  30. Write a C program to find the sum and average of different numbers which are accepted by user as many as user wants.
  31. Write a program to accept start number and end number from the user and print all the numbers in the range.
  32. Write a program to calculate average and total marks of 5 students for 3 subjects.
  33. Read five persons height and weight and count the number of person having height greater than 170 and weight less than 50.
  34. Write a program to evaluate the series 1^2+2^2+3^2+……+n^2.
  35. Write a C program to find 1+1/2+1/3+1/4+....+1/n.
  36. Write a C program to find 1+1/2!+1/3!+1/4!+.....+1/n!.
  37. Write a program to evaluate the series sum=1-x+x^2/2!-x^3/3!+x^4/4!......-x^9/9!.
  38. Write a program to print pattern as given below :
  39.                 *
                   * *
                  * * *
                 * * * *
                * * * * *
               * * * * * *

  40. Write a program to print pattern as given below :
  41. *
    * *
    * * *
    * * * *
    * * * * *
    * * * * * *

  42. Write a program to print patterns as given below:
  43. * * * * * *
    * * * * *
    * * * *
    * * *
    * *
    *

  44. Write a program to print patterns as given below:
  45. 1
    12
    123
    1234
    12345
    123456

  46. Write a program to print patterns as given below:
  47. 123456
    12345
    1234
    123
    12
    1

  48. Write a program to print patterns as given below:
  49. 666666
    55555
    4444
    333
    22
    1

  50. Write a program to print patterns as given below:
  51. 1
    22
    333
    4444
    55555
    666666

  52. Write a program to print patterns as given below:
  53.             1
             1 2 3
          1 2 3 4 5
       1 2 3 4 5 6 7
    1 2 3 4 5 6 7 8 9

  54. Make Pascal's triangle. OR Write a program to print patterns as given below:
  55.          1
           1  1
         1  2  1
       1  3  3  1
     1  4  6  4  1

  56. Write a program to print patterns as given below:
  57.             *
             * # *
          * # # # *
       * # # # # # *
    * # # # # # # # *

  58. Write a program to print patterns as given below:
  59. 1
    1 2
    1 2 3
    1 2 3 4
    1 2 3
    1 2
    1

  60. Write a program to print patterns as given below:
  61. A
    AB
    ABC
    ABCD
    ABCDE

  62. Write a program to print patterns as given below:
  63. AAAAA
    BBBB
    CCC
    DD
    E

  64. Write a C program to read and store the roll no and marks of 20 students using array.
  65. Write a program to find out which number is even or odd from list of 10 numbers using array.
  66. Write a program to find maximum element from 1-Dimensional array.
  67. Write a C program to calculate the average, geometric and harmonic mean of n elements in an array.
  68. Write a program to sort given array in ascending order (Using Bubble sort).
  69. Write a program to reverse a number.
  70. Write a program to find a chosen character from given string.
  71. Write a program to replace a character in given string.
  72. Write a program to delete a character in given string.
  73. Write a program to reverse string.
  74. Write a program to convert string into upper case.
  75. Write a program that defines a function to add first n numbers.
  76. Write a function in the program to return 1 if number is prime otherwise return 0.
  77. rite a function Exchange() to interchange the values of two variables, say x and y. illustrate the use of this function in a calling function.
  78. Write a C program to use recursive calls to evaluate F(x) = x – x^3 / 3! + x^5 / 5 ! – x^7 / 7! + … x^n/ n!.
  79. Write a program to find factorial of a number using recursion.
  80. Write a C program using global variable, static variable.
  81. Write a function that will scan a character string passed as an argument and convert all lowercase character into their uppercase equivalents.
  82. Write a program to read structure elements from keyboard.
  83. Define a structure type struct personal that would contain person name, date of joining and salary using this structure to read this information of 5 people and print the same on screen.
  84. Define a structure data type called time_struct containing three member‟s - integer hour, integer minute and integer second. Develop a program that would assign values to the individual number and display the time in the format: (16 : 40 : 51).
  85. Define a structure called cricket that will describe the following information: Player name , Team name, Batting average Using cricket, declare an array player with 50 elements and write a C program to read the information about all the 50 players and print team wise list containing names of players with their batting average.
  86. Design a structure student_record to contain name, branch and total marks obtained. Develop a program to read data for 10 students in a class and print them.
  87. Write a program to print address of variable using pointer.
  88. Write a program to swap two values using pointers.
  89. Write a program to print the address of character and the character of string using pointer.
  90. Write a program to access elements using pointer.
  91. Write a program for sorting using pointer.
  92. Write a program to write a string in file.
  93. A file named data contains series of integer numbers. Write a program to read all numbers from a file and then write all odd numbers into the file named “odd” and write all even numbers into file named “even”. Display all the contents of these file on screen.
  94. Given a string, s, consisting of alphabets and digits, find the frequency of each digit in the given string. Print ten space-separated integers in a single line denoting the frequency of each digit from 0 to 9.

------------------------------------------------------------Best-of-Luck------------------------------------------------------------

About

The List of C Programs: Getting started with C Programming

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages