What is Algorithm in C?

What is Algorithm in C?

What is Algorithm in C?

An algorithm refers to well-defined, step-by-step procedure for solvig a specific problem a particular task using the C programming language.

Here’s a general outline of how algorithms are represented and implemented in C:

Ex:-

The sum of two integers.

Step 1 – Start

Step 2 – Declare three integers a, b, c

step 3 – Define the values of a and b

step 4 – Add the values of a and b

step 5 – Save the output of step 4 in c

step 6 – Print c

step 7 – Stop

Leave a Comment

Your email address will not be published. Required fields are marked *