0% found this document useful (0 votes)
117 views4 pages

18.C Program To Find Factorial of A Number

This document provides examples of C programming concepts including: printing values, arithmetic operations, decision making, loops, functions, arrays, pointers, strings, structures, and file input/output. It contains over 70 examples organized into sections covering basic examples, decision making and loops, functions, arrays and pointers, strings, structures, and file handling. The examples provide demonstrations of common tasks and operations in C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views4 pages

18.C Program To Find Factorial of A Number

This document provides examples of C programming concepts including: printing values, arithmetic operations, decision making, loops, functions, arrays, pointers, strings, structures, and file input/output. It contains over 70 examples organized into sections covering basic examples, decision making and loops, functions, arrays and pointers, strings, structures, and file handling. The examples provide demonstrations of common tasks and operations in C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

C Programming Introduction Examples::

1.C Program to Print a Sentence


2.C Program to Print a Integer Entered by a User
3.C Program to Add Two Integers Entered by User
4.C Program to Multiply two Floating Point Numbers
5.C Program to Find ASCII Value of Character Entered by User
6.C Program to Find Quotient and Remainder of Two Integers Entered by
User
7.C Program to Find Size of int, float, double and char of Your System
8.C Program to Demonstrate the Working of Keyword long
9.C Program to Swap Two numbers Entered by User

Decision Making and Loop Examples

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


11.C Program to Check Whether a Character is Vowel or consonant
12.C Program to Find the Largest Number Among Three Numbers Entered
by User
13.C program to Find all Roots of a Quadratic equation
14.C Program to Check Whether the Entered Year is Leap Year or not
15.C Program to Check Whether a Number is Positive or Negative or Zero.
16.C Program to Checker Whether a Character is an Alphabet or not
17.C Program to Find Sum of Natural Numbers
18.C Program to Find Factorial of a Number
19.C program to Generate Multiplication Table
20.C Program to Display Fibonacci Series
21.C Program to Find HCF of two Numbers
22.C Program to Find LCM of two numbers entered by user
23.C Program to Count Number of Digits of an Integer
24.C Program to Reverse a Number
25.C program to Calculate the Power of a Number
26.C Program to Check Whether a Number is Palindrome or Not
27.C Program to Check Whether a Number is Prime or Not
28.C Program to Display Prime Numbers Between Two Intervals
29.C program to Check Armstrong Number
30.C Program to Display Armstrong Number Between Two Intervals
31.C program to Display Factors of a Number
32.C program to Print Pyramids and Triangles in C programming using
Loops
33.C program to Make a Simple Calculator to Add, Subtract, Multiply or
Divide Using switch...case

C Function Examples

34.C Program to Display Prime Numbers Between Intervals by Making


Function
35.C Program to Check Prime and Armstrong Number by Making Function
36.C program to Check Whether a Number can be Express as Sum of Two
Prime Numbers
37.C program to Find Sum of Natural Numbers using Recursion.
38.C program to Calculate Factorial of a Number Using Recursion
39.C Program to Find H.C.F Using Recursion8
40.C program to Reverse a Sentence Using Recursion
41.C program to Calculate the Power of a Number Using Recursion
42.C Program to Convert Binary Number to Decimal and Decimal to Binary
43.C Program to Convert Octal Number to Decimal and Decimal to Octal
44.C Program to Convert Binary Number to Octal and Octal to Binary

Array and Pointer Examples

45.C Program to Calculate Average Using Arrays


46.C Program to Find Largest Element of an Array
47.C Program to Calculate Standard Deviation
48.C Program to Add Two Matrix Using Multi-dimensional Arryas
49.C Program to Multiply to Matrix Using Multi-dimensional Arrays
50.C Program to Find Transpose of a Matrix
51.C Program to Multiply two Matrices by Passing Matrix to Function
52.C Program to Sort Elements of an Array
53.C Program to Access Elements of an Array Using Pointer
54.C Program Swap Numbers in Cyclic Order Using Call by Reference
55.C Program to Find Largest Number Using Dynamic Memory Allocation

Examples of Strings in C Programming

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


57.C Program to Find the Number of Vowels, Consonants, Digits and White
space in a String
58.C Program to Reverse a String by Passing it to Function
59.C Program to Find the Length of a String
60.C program to Concatenate Two Strings
61.C Program to Copy a String
62.C Program to Remove all Characters in a String except alphabet
63.C Program to Sort Elements in Lexicographical Order (Dictionary
Order)
64.C Program to Change Decimal to Hexadecimal Number and Vice Versa
65.C Program to Convert Hexadecimal to Octal and Vice Versa
66.C Program to Convert Binary Number to Hexadecimal Vice Versa

Example of Structures in C Programming

67.C Program to Store Information(name, roll and marks) of a Student


Using Structure
68.C Program to Add Two Distances (in inch-feet) System Using Structures
69.C Program to Add Two Complex Numbers by Passing Structure to a
Function
70.C Program to Calculate Difference Between Two Time Period
71.C Program to Store Information of 10 Students Using Structure
72.C Program to Store Information Using Structures for n Elements
Dynamically

Examples of files in C Programming

73.C Program to read name and marks of students and store it in file
74.C Program to read name and marks of students and store it in file. If file
already exists, add information to it.
75.C Program to write members of arrays to a file using fwrite()

You might also like