Advertisement
greatbn

menu

May 18th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. main()
  2. {
  3.     int c,n;
  4.     while(c!=3)
  5.     {
  6.         printf("\nChon 1: Nhap so nguyen duong");
  7.         printf("\nChon 2: In duong cheo chinh");
  8.         printf("\nChon 3: Thoat");
  9.         printf("\nMoi ban chon: ");
  10.         scanf("%d",&c);
  11.         switch(c)
  12.         {
  13.             case 1:
  14.                 Nhapmatran(&n,A);
  15.                 break;
  16.             case 2:
  17.                 Induongcheo(n,A);
  18.                 break;
  19.             default:
  20.                 printf("Khong hop le");
  21.                 system("pause");
  22.                 system("cls");
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement