Professional Documents
Culture Documents
Algorithms (WEEK 3)
Algorithms (WEEK 3)
Algorithm:
Step-1: Start
Step-2: Accept one number from user.
Step-3: Use the function sqrt() to find square root.
Step-4: Print the result.
Step-5: End
Algorithm:
Step-1: Start
Step-7: Stop
3) AIM: Write a C program to find the area of triangle using heron’s formulae
Algorithm:
Step-1: Start
Step-2: Declare the variables for sides of triangle as a, b, c, and s as half perimeter, and area
Step-7: Stop
4) AIM: Write a C program to Calculate the Distance travelled by an object
Algorithm:
Step-1: Start
Step-2: Declare the Variables v, t, and d for velocity, time, and distance
Step-4: Calculate the distance using the formula d=v*t (distance = velocity * time)
Step-6: Stop