C language for beginners (part:-1)
1. Program to print "Hello World!!".
2. Program to assign values of two numbers and print their addition.
3. Program to accept values of two numbers and print their addition.
4. Program to print simple interest.
5. Program to accept value of radius and print area of a circle.
6. Program to accept a number from user and print itβs square & cube.
7. Program to accept two values of a & b and swap their values.
8. Program to accept two number and print largest among them.
9. Program to accept a number and check whether the number is Positive, Negative or Zero.
10. Program to check whether the number is even or odd.
11. Program to accept three numbers from user and print them in ascending and decending order.
12. Program to find the roots of a quadratic equation.
13. Program to accept rollnumber and marks of three subjects from user and print total marks, average and grade.
14. Program to print numbers from 1 to n using while loop
15. Program to print numbers from n to 1 using Do While loop.
16. Program to print first n even numbers.
17. Program to accept a number and print that number in reverse order.
Ex:- 1024
Output:- 4201
18. Program to accept a number and print sum of itβs digits.
19. Program to take a number from user and check whether it is Armstrong number or not.
20. Program to take number from user and print table of that number.
NOT:- check itπ
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
1. Program to print "Hello World!!".
2. Program to assign values of two numbers and print their addition.
3. Program to accept values of two numbers and print their addition.
4. Program to print simple interest.
5. Program to accept value of radius and print area of a circle.
6. Program to accept a number from user and print itβs square & cube.
7. Program to accept two values of a & b and swap their values.
8. Program to accept two number and print largest among them.
9. Program to accept a number and check whether the number is Positive, Negative or Zero.
10. Program to check whether the number is even or odd.
11. Program to accept three numbers from user and print them in ascending and decending order.
12. Program to find the roots of a quadratic equation.
13. Program to accept rollnumber and marks of three subjects from user and print total marks, average and grade.
14. Program to print numbers from 1 to n using while loop
15. Program to print numbers from n to 1 using Do While loop.
16. Program to print first n even numbers.
17. Program to accept a number and print that number in reverse order.
Ex:- 1024
Output:- 4201
18. Program to accept a number and print sum of itβs digits.
19. Program to take a number from user and check whether it is Armstrong number or not.
20. Program to take number from user and print table of that number.
NOT:- check itπ
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
π16β€2π2π₯°1
C language for beginners (part:-2)
21. Pattern 1
β’
β’ β’
β’ β’ β’
β’ β’ β’ β’
β’ β’ β’ β’ β’
22. Pattern 2
β’ β’ β’ β’ β’
β’ β’ β’ β’
β’ β’ β’
β’ β’
β’
23. Pattern 3
β’
β’ β’
β’ β’ β’
β’ β’ β’ β’
β’ β’ β’ β’ β’
24. Pattern 4
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
25. Pattern 5
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
26. Pattern 6
A
B C
D E F
G H I J
K L M N O
27. Pattern 7
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1
28. Pattern 8 (Binary Pattern)
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
29. Pattern 9
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
30. Pattern 10
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
31. Pattern 11
1 1
1 2 2 1
1 2 3 3 2 1
1 2 3 4 4 3 2 1
32. Floyd's triangle
1
2 3
4 5 6
7 8 9 10
11 12 13 14
33. Pyramid
*
* *
* * *
* * * *
* * * * *
34. Pyramid 2
*
*A*
*A*A*
*A*A*A*
*A*A*A*A*
35. Number Pyramid
1
232
34543
4567654
567898765
36. Pascal triangle
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
37. Pascal triangle without using function
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
38. Pascal triangle 2
1
121
12321
1234321
123454321
39. Number Alphabet Pattern
1
A B
2 3 4
C D E F
5 6 7 8 9
G H I J K L
40. Number Diamond Pattern
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
1 2 3 4 5 6 7
1 2 3 4 5
1 2 3
1
41. Diamond of Numbers
1
2 2 2
3 3 3 3 3
4 4 4 4 4 4 4
5 5 5 5 5 5 5 5 5
4 4 4 4 4 4 4
3 3 3 3 3
2 2 2
1
42. Diamond Pattern
β’
β’β’β’
β’β’β’β’β’
β’β’β’
β’
43. Diamond star outline
*
* *
* *
* *
* *
* *
*
44. Hollow Diamond
* * * * * * * *
* * * * * *
* * * *
* *
* * * *
* * * * * *
* * * * * * * *
45. Hollow Square
* * * * *
* *
* *
* *
* * * * *
46. Hourglass Pattern
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
47. Nested Star-Hash Pyramid
#####*#####
####*#*####
###*###*###
##*#####*##
#*#######*#
*#########*
48. Reverse star pyramid
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
49. Rhombus Pattern
1 1
2 2
3 3
4 4
5 5
4 4
3 3
2 2
1 1
50. Square kite pattern
1
2 2
3 3
4 4
3 3
2 2
1
51. Triangle with only border
*
* *
* *
* *
* *
* *
* * * * * *
NOT:- check itπ
this codes are used your future exams
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
21. Pattern 1
β’
β’ β’
β’ β’ β’
β’ β’ β’ β’
β’ β’ β’ β’ β’
22. Pattern 2
β’ β’ β’ β’ β’
β’ β’ β’ β’
β’ β’ β’
β’ β’
β’
23. Pattern 3
β’
β’ β’
β’ β’ β’
β’ β’ β’ β’
β’ β’ β’ β’ β’
24. Pattern 4
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
25. Pattern 5
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
26. Pattern 6
A
B C
D E F
G H I J
K L M N O
27. Pattern 7
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1
28. Pattern 8 (Binary Pattern)
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
29. Pattern 9
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
30. Pattern 10
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
31. Pattern 11
1 1
1 2 2 1
1 2 3 3 2 1
1 2 3 4 4 3 2 1
32. Floyd's triangle
1
2 3
4 5 6
7 8 9 10
11 12 13 14
33. Pyramid
*
* *
* * *
* * * *
* * * * *
34. Pyramid 2
*
*A*
*A*A*
*A*A*A*
*A*A*A*A*
35. Number Pyramid
1
232
34543
4567654
567898765
36. Pascal triangle
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
37. Pascal triangle without using function
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
38. Pascal triangle 2
1
121
12321
1234321
123454321
39. Number Alphabet Pattern
1
A B
2 3 4
C D E F
5 6 7 8 9
G H I J K L
40. Number Diamond Pattern
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
1 2 3 4 5 6 7
1 2 3 4 5
1 2 3
1
41. Diamond of Numbers
1
2 2 2
3 3 3 3 3
4 4 4 4 4 4 4
5 5 5 5 5 5 5 5 5
4 4 4 4 4 4 4
3 3 3 3 3
2 2 2
1
42. Diamond Pattern
β’
β’β’β’
β’β’β’β’β’
β’β’β’
β’
43. Diamond star outline
*
* *
* *
* *
* *
* *
*
44. Hollow Diamond
* * * * * * * *
* * * * * *
* * * *
* *
* * * *
* * * * * *
* * * * * * * *
45. Hollow Square
* * * * *
* *
* *
* *
* * * * *
46. Hourglass Pattern
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
47. Nested Star-Hash Pyramid
#####*#####
####*#*####
###*###*###
##*#####*##
#*#######*#
*#########*
48. Reverse star pyramid
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
49. Rhombus Pattern
1 1
2 2
3 3
4 4
5 5
4 4
3 3
2 2
1 1
50. Square kite pattern
1
2 2
3 3
4 4
3 3
2 2
1
51. Triangle with only border
*
* *
* *
* *
* *
* *
* * * * * *
NOT:- check itπ
this codes are used your future exams
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
π10β€1
You :- Tatasteel exam is tomorrow can you help me
Me:- join this chaneel π
@allcoding1
@tatasteel_exam_Anss
Me:- join this chaneel π
@allcoding1
@tatasteel_exam_Anss
π5