![]() Step 1: Start Step 2: Read Radius Step 3: Area=3.14*Radius *Radius Step 4: Print Area Step 5: Stop Step 1: Start Step 2: Read Byear Step 3: Age=2015-Byear Step 4: Print Age Step 5: Stop Step 1: Start Step 2: Read A, B, C Step 3: Avg=(A+B+C)/3 Step 4: Print Avg Step 5: Stop Step 1: Start Step 2: Read A, B Step 3: C=A*B Step 4: Print C Step 5: Stop Step 1: Start Step 2: Read A, B Step 3: C=A-B Step 4: Print C Step 5: StopĦ Algorithm Problem: Average of 3 numbers ![]() Step 1: Start Step 2: Read A, B Step 3: C=A+B Step 4: Print C Step 5: Stopĥ Algorithm Problem: Subtract 2 numbers Problem: Multiply 2 numbers Step by step method to solve a problem is algorithm Flow Chart Diagrammatic representation of algorithmģ Algorithm Example 1: Write an algorithm to Add two numbers ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |