Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Data Structure Lab
- #include <stdio.h>
- int main()
- {
- int a[100],n,i,c,b;
- printf("\n Enter How Many Values");
- scanf("%d",&n);
- printf("\n Enter values \n");
- for (i=1;i<=n;i++)
- scanf("%d",&a[i]);
- while(b)
- {
- printf("\n ----Menu----- \n");
- printf("\n Press 0 for quit");
- printf("\n Press 1 for Display");
- printf("\n Press 2 inset and last position");
- printf("\n Press 3 insertion al specific");
- printf("\n Press 4 for Delete from Specific position");
- printf("\n Press 5 for Linear Search");
- printf("\n Press 6 for Bubble Short");
- printf("\n Press 7 for Binary Search");
- printf("\n Enter Your Choice \n");
- scanf("%d", &c);
- switch(c)
- {
- case 0: b=0;
- break;
- default:printf("\n Wrong Choice");
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment