Foyaj128

Data Structure

Jan 28th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.91 KB | None | 0 0
  1. //Data Structure Lab
  2. #include <stdio.h>
  3. int main()
  4. {
  5.     int a[100],n,i,c,b;
  6.     printf("\n Enter How Many Values");
  7.     scanf("%d",&n);
  8.     printf("\n Enter values \n");
  9.     for (i=1;i<=n;i++)
  10.     scanf("%d",&a[i]);
  11.     while(b)
  12.     {
  13.         printf("\n ----Menu----- \n");
  14.         printf("\n Press 0 for quit");
  15.         printf("\n Press 1 for Display");
  16.         printf("\n Press 2 inset and last position");
  17.         printf("\n Press 3 insertion al specific");
  18.         printf("\n Press 4 for Delete from Specific position");
  19.         printf("\n Press 5 for Linear Search");
  20.         printf("\n Press 6 for Bubble Short");
  21.         printf("\n Press 7 for Binary Search");
  22.         printf("\n Enter Your Choice \n");
  23.         scanf("%d", &c);
  24.         switch(c)
  25.         {
  26.             case 0: b=0;
  27.             break;
  28.             default:printf("\n Wrong Choice");
  29.             break;
  30.         }
  31.  
  32.     }
  33. }
Add Comment
Please, Sign In to add comment