#clanguage #cprogramming
Algorithm:- It is a Step-by-Step Procedure for Solving a problem.
Based on Algorithm we develop program.
Characteristics or Properties of an Algorithm:-
1. Input :- An Algorithm accepts 0 or more number of inputs.
2. Output:- An Algorithm must produce 1 or more number of outputs.
3. Finiteness:-An Algorithm must contain a finite number of steps.
4. Definiteness:- Each Step of an Algorithm must be clear & unambiguous.
5. Effectiveness:- All the operations are performed in a finite amount of time using paper and pencil.
Ex1:- Write an Algorithm to display “ Welcome to C Programming”.
Step 1:- Start
Step 2:- Print “Welcome to C Programming”
Step 3:- Stop
Ex2:- Write an Algorithm to add 2 numbers.
Step 1:- Start
Step 2:- Read 2 numbers
Step 3:- Calculate sum=a+b
Step 4:- Print sum
Step 5:- Stop
Ex3:- Write an Algorithm to calculate Area and Perimeter of a circle.
Step 1:- Start
Step 2:- Read r
Step 3:- Calculate area=3.14*r*r
Step 4:- Calculate p=2*3.14*r
Step 5:- Print area, p
Step 6:- Stop
1. Compiler Design Playlist: https://www.youtube.com/playlist?list=PLXj4XH7LcRfC9pGMWuM6UWE3V4YZ9TZzM
------------------------------------------------------------------------------------
2. Computer Organization and Architecture Playlist: https://www.youtube.com/playlist?list=PLXj4XH7LcRfDXDRzSLv1FfZ-SSA38SiC0
---------------------------------------------------------------------------------------
3. Operating Systems Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfDrdQuJTHIPmKMpa7eYVaPm
----------------------------------------------------------------------------------------
4. C Programming Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfBi_vnP7eo-QayXpzuMuOP6
--------------------------------------------------------------------------------------------------------------------------
5. Java Programming Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfDlQklXu3Hrtru-bm2dJ9Df
---------------------------------------------------------------------------------------------------------------------------------
6. Data Structures Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfAhaLFnq4fQ5ASOqKd08-Us
---------------------------------------------------------------------------------------------------------------------
7. Web Technologies Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfCwJmQkWF9sBUFLAdonjOMB
----------------------------------------------------------------------------------------------------------------
8. C++ Programming Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfCmm6ZT-R_33bxLY1fvcm_o
--------------------------------------------------------------------------------------------------------------------------
9. DAA ( Design and Analysis of Algorithms) Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfAG09GbFgMOLACfvbMplHsW
----------------------------------------------------------------------------------------------------------------------------
10. Python Programming Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfAKSXjEzeQhXdqTflN7qRlo
---------------------------------------------------------------------------------------------------------------------------
11. DMS ( Discrete Mathematical Structures ) Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfBB-4hXp4XI84HOCWkaBD63
----------------------------------------------------------------------------------------------------------------------------------
12. C#.net Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfA8sKELgBkkUZxzGK1o5ll0
--------------------------------------------------------------------------------------------------------------------------------------
13. OOP through Python Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfANIIqVzBRTh0XDgZxu-QO2
----------------------------------------------------------------------------------------------------------------
14. DBMS Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfBF0sREiXwZPmbyCnLSM18K
----------------------------------------------------------------------------------------------------------
15. Computer Networks Playlist:
https://www.youtube.com/playlist?list=PLXj4XH7LcRfCKbi7Najz8EIr1JymxoFBW
------------------------------------------------------------------------------------------------
16. Linux Programming Playlist:
https://www.youtube.com/watch?v=8D6BczDnaKc&list=PLXj4XH7LcRfBiC4yNJ2dnRhE7ShGEB-WQ
-------------------------------------------------------------------------------------------------------
17. MPMC Playlist:
https://www.youtube.com/watch?v=qPMhS3CVTEk&list=PLXj4XH7LcRfDeZMvr1EYux5HhZ94dRL1X
--------------------------------------------------------------------------------------------------------------------------
#AlgorithminC #Characteristicsofalgorithm #ExamplesofAlgorithminC
Algorithm in Programming (With Examples)
What is an algorithm in C programming?
What is an algorithm and an example?