Вы находитесь на странице: 1из 5

INFINITY LEARNING Program List in C

Program List in C

1. C Program to Check if a given Integer is Odd or Even


2. C Program to Calculate the Sum of Odd & Even Numbers
3. C Program to Check if a given Integer is Positive or Negative
4. C Program to Find the Number of Integers Divisible by 5
5. C Program to Find ASCII Value of a Character
6. C Program to Check Whether a Character is Vowel or Consonant
7. C Program to Find the Largest Number Among Three Numbers
8. C Program to Find all Roots of a Quadratic Equation
9. C Program to Check Leap Year
10.C Program to Check Whether a Number is Positive or Negative
11.C Program to Check Whether a Character is an Alphabet or not
12.C Program to Calculate the Sum of Natural Numbers
13.C Program to Find Factorial of a Number
14.C Program to Generate Multiplication Table
15.C Program to Display Fibonacci Sequence
16.C Program to Read Two Integers M and N & Swap their Values
17.C Program to Accept two Integers and Check if they are Equal
18.C Program to Find GCD of two Numbers
19.C Program to Find LCM of two Numbers
20.C Program to Display Characters from A to Z Using Loop
21.C Program to Compute the Sum of Digits in a given Integer
22.C Program to Convert the given Binary Number into Decimal
23.C Program to Convert a Decimal Number to Binary & Count the Number of 1s
24.C Program to Convert a Given Number of Days in terms of Years, Weeks & Days
25.C Program to Convert Binary to Octal
26.C Program to Convert Binary to Hexadecimal
27.C Program to Convert Decimal to Octal
28.C program to Convert Decimal to Hexadecimal
29.C Program to Convert Roman Number to Decimal Number
30.C Program to Convert Octal to Binary
31.C Program to Convert Hexadecimal to Binary
32.C Program to Convert Numbers to Roman Numerals
33.C Program to Convert Octal to Decimal
34.C Program to Calculate Average Using Arrays
35.C Program to Find Largest Element in an Array
36.C Program to Calculate Standard Deviation
37.C Program to Add Two Matrices Using Multi-dimensional Arrays
38.C Program to Multiply to Matrix Using Multi-dimensional Arrays
39.C Program to Find Transpose of a Matrix
40.C Program to Multiply two Matrices by Passing Matrix to a Function
41.C Program to Access Array Elements Using Pointer
42.C Program to Find Largest Number Using Dynamic Memory Allocation
Page 1 of 5
INFINITY LEARNING Program List in C
43.C Program to Find the Frequency of Characters in a String
44.C Program to Count the Number of Vowels, Consonants and so on
45.C Program to Remove all Characters in a String Except Alphabets
46.C Program to Find the Length of a String
47.C Program to Concatenate Two Strings
48.C Program to Copy String Without Using strcpy()
49.C Program to Sort Elements in Lexicographical Order (Dictionary Order)
50.C Program to Convert a Number Decimal System to Binary System using
Recursion
51.C Program to Convert Binary Code of a Number into its Equivalent Gray’s Code
without using Recursion
52.C Program to Convert Binary Code of a Number into its Equivalent Gray’s Code
using Recursion
53.C Program to find Sum of Digits of a Number using Recursion
54.C Program to find Reverse of a Number using Recursion
55.C Program to Find G.C.D Using Recursion
56.C Program to find Sum of N Numbers using Recursion
57.C Program to find whether a Number is Prime or Not using Recursion
58.C Program to Print Binary Equivalent of an Integer using Recursion
59.C Program to find Product of 2 Numbers using Recursion
60.C Program to Find the Biggest of 3 Numbers
61.C Program to Reverse a Given Number
62.C Program to Reverse a Number & Check if it is a Palindrome
63.C Program to Find the Sum of two Binary Numbers
64.C Program to Find Multiplication of two Binary Numbers
65.C Program to find Product of 2 Numbers without using Recursion
66.C Program to Check whether a given Number is Armstrong
67.C Program to Check whether a given Number is Perfect Number
68.C Program to Print Armstrong Number from 1 to 1000
69.C Program to Add two Complex Numbers
70.C Program to Generate Fibonacci Series of N Numbers using Command-Line
Argument
71.C Program to Compute First N Fibonacci Numbers using Command Line
Arguments
72.C Program to Find the Sum of first 50 Natural Numbers using For Loop
73.C Program to Swap the Contents of two Numbers using Bitwise XOR Operation
74.C Program to Multiply given Number by 4 using Bitwise Operators
75.C Program to Illustrate how User Authentication is Done
76.C Program to Display the IP Address of the System
77.C Program to Shutdown or Turn Off the Computer in Linux
78.C Program to Find if a given Year is a Leap Year
79.C Program to Extract Last two Digits of a given Year
80.C Program to Display the Inventory of Items in a Store
81.C Program to Display the ATM Transaction
Page 2 of 5
INFINITY LEARNING Program List in C
82.C Program to Accept the Height of a Person & Categorize as Taller, Dwarf &
Average
83.C Program to Read a Grade & Display the Equivalent Description
84.C Program to Illustrate the Concept of Unions
85.C Program to Find the Size of a Union
86.C Program to Display Function without using the Main Function
87.C Program to Print a Semicolon without using a Semicolon anywhere in the Code
88.C program to Increase 1 to all of the given Integer Digit
89.C Program to Print Diamond Pattern
90.C Program to Print any Print Statement without using Semicolon
91.C Program to Display its own Source Code as its Output
92.C Program to Illustrate Pass by Reference
93.C Program to Illustrate Pass by Value
94.C Program to Input 3 Arguments and Operate Appropriately on the Numbers
95.C Program to Print the Program Name and All its Arguments
96.C Program to Calculate Difference Between Two Time Periods
97.C Program to Write a Sentence to a File
98.C Program to Add Two Distances (in inch-feet) System Using Structures
99.C Program to Store Information Using Structures with Dynamically Memory
Allocation
100. C Program to Display its own Source Code as Output

Patterns using C
*
** * * *
** ** **
*** * * *** * *
**** * * **** * *
***** ***** ***** *****

***** ***** ***** *****


**** * * **** * *
*** * * *** * *
** ** ** **
* * * *

* * ********* *********
*** * * ******* * *
***** * * ***** * *
******* * * *** * *
********* ********* * *

* * * **********
** ** *** **** ****
*** *** ***** *** ***
**** **** ******* ** **
***** ***** ********* * *
**** **** ******* * *

Page 3 of 5
INFINITY LEARNING Program List in C
*** *** ***** ** **
** ** *** *** ***
* * * **** ****
**********

***** ***** ***** *****


* * ***** ** ** *****
* * ***** * * * *****
* * ***** ** ** *****
***** ***** ***** *****

*
***** ***** ***** **
* * ***** * *
* * ***** * * ***
* * ***** * * ****
***** ***** ***** *****

***** ***** + * *
**** **** + * *
*** *** + * *
** ** + * *
* * +++++++++ *
** ** + * *
*** *** + * *
**** **** + * *
***** ***** + * *

A
*** ***** ***** ***** ***** AB
* * ******* ******* ******* *******
* * ********* ********* ********* ********* ABC
* * ******************* *****Codeforwin**** ABCD
*** ***************** ***************** ABCDE
* * *************** ***************
* * ************* *************
* * *********** ***********
*** ********* *********
******* *******
***** *****
*** ***
* *

1 12345 1 1
12 1234 232 1 1
123 123 34543 1 2 1
1234 12 4567654 1 3 3 1
12345 1 567898765 1 4 6 4 1
1 5 10 10 5 1
1 0 1 1
23 101 22 12
456 21012 333 358
7 8 9 10 3210123 4444 13 21 34 55
432101234 55555 89 144 233 377 610
54321012345
Page 4 of 5
INFINITY LEARNING Program List in C
11111 11111 1234 11111
10001 0000 2341 1 1
10001 111 3421 1 1
10001 00 4321 1 1
11111 1 11111

1 1 *000*000* 1
123 12 0*00*00*0 11
12345 123 00*0*0*00 121
1234567 1234 000***000 1331
123456789 12345 14641
1234567
12345
123
1
4444444 1 1
4333334 4 9 16 24
4322234 25 36 49 64 81 369
4321234 100 121 144 169 196 225 256 4 8 12 16
4322234 289 324 361 400 441 484 529 576 625 5 10 15 20 25
4333334 6 12 18 24 30 36
4444444 7 14 21 28 35 42 49
8 16 24 32 40 48 56 64

A E ABCDE AAAAA
BB DE BCDE BBBB
CCC CDE CDE CCC
DDDD BCDE DE DD
EEEEE ABCDE E E

Page 5 of 5

Вам также может понравиться