Algorithm in C|Characteristics of algorithm|Examples of Algorithm in C

Sudhakar Atchala
Sudhakar Atchala
13.2 هزار بار بازدید - 6 سال پیش - #clanguage
#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:  Compiler Design
------------------------------------------------------------------------------------

2. Computer Organization and Architecture Playlist:   Computer Organization and Architecture
---------------------------------------------------------------------------------------

3. Operating Systems Playlist:
Operating Systems
----------------------------------------------------------------------------------------

4. C Programming Playlist:
C Programming

--------------------------------------------------------------------------------------------------------------------------

5. Java Programming Playlist:
JAVA PROGRAMMING

---------------------------------------------------------------------------------------------------------------------------------

6. Data Structures Playlist:
Data Structures

---------------------------------------------------------------------------------------------------------------------

7. Web Technologies Playlist:
Web Technologies

----------------------------------------------------------------------------------------------------------------

8. C++ Programming Playlist:
C++ Programming

--------------------------------------------------------------------------------------------------------------------------

9. DAA ( Design and Analysis of Algorithms) Playlist:
DAA ( Design and Analysis of Algorith...

----------------------------------------------------------------------------------------------------------------------------

10. Python Programming Playlist:
PYTHON PROGRAMMING

---------------------------------------------------------------------------------------------------------------------------

11. DMS ( Discrete Mathematical Structures ) Playlist:
Discrete Mathematics ( DMS )
----------------------------------------------------------------------------------------------------------------------------------

12. C#.net Playlist:
C#.NET
--------------------------------------------------------------------------------------------------------------------------------------

13. OOP through Python Playlist:
Python OOP ( Object Oriented Programm...

----------------------------------------------------------------------------------------------------------------

14. DBMS Playlist:
DBMS ( Data Base Management Systems

----------------------------------------------------------------------------------------------------------

15. Computer Networks Playlist:
Computer Networks

------------------------------------------------------------------------------------------------

16. Linux Programming Playlist:
Architecture || Components of UNIX ||...

-------------------------------------------------------------------------------------------------------

17. MPMC Playlist:
Introduction to Microprocessors || Hi...

--------------------------------------------------------------------------------------------------------------------------


#AlgorithminC #Characteristicsofalgorithm #ExamplesofAlgorithminC
Algorithm in Programming (With Examples)
What is an algorithm in C programming?
What is an algorithm and an example?
6 سال پیش در تاریخ 1397/11/17 منتشر شده است.
13,208 بـار بازدید شده
... بیشتر