Professional Documents
Culture Documents
Experiment 1(A)
1. START
2. INITIALIZE arr[]
3. SET temp =0
4. length= sizeof(arr)/sizeof(arr[0])
7. PRINT arr[i]
8. i=i+1.
11. j=j+1.
12. i=i+1.
15. SET i=0. REPEAT the below steps UNTIL i < length
17. i=i+1.
18. RETURN 0.
19. END.
Code:
#include <stdio.h>
int main(){
int num[25];
int a, j, i, n;
Output:
Conclusion: Time Complexity :O(n2)