Pseudocode For Sorting N Numbers of Data Using Bubble Sort
Pseudocode For Sorting N Numbers of Data Using Bubble Sort
4. If n < 1
6. Repeat to step 3
7. If n = 1
9. For i = 1 to n
15. Increase j by 1
16. If counter = 0
4. If n < 1
6. Repeat step 3
7. If n = 1
9. For i = 1 to n-1
11. For j = i + 1 to n
14. Increase j by 1
15. Increase i by 1
Pseudocode for sorting n numbers of data using insertion sort with two arrays
1. Declare variable
5. Set m equals to n
6. If n < 1
8. Repeat to step 3
9. If n = 1
12. For i = 1 to n
13. For j = 1 to i
18. Increase j by 1
19. Increase i by 1
4. If n < 1
8. If n = 1
11. For i = 2 to n
13. prime[i] = j
14. Increase i by 1
15. Increase j by 1
3. Input the size of Pascal Triangle and save the value to r and c
4. If r < 1
7. For i = 1 to r
8. For j = 1 to c
9. If j = 1 or j = i
12. Increase j by 1
13. Increase i by 1
3. Input how many numbers of Fibonacci sequence to be printed and save the value to n
4. If n < 1
7. For i = 1 to n
8. If i < 3
9. fibonacci[i] = 1
11. Increase i by 1