Puzzle

#include #include #include #include #include #include #include void main(){ int n,x[500],i,j,a,b,c,d,e,ambil[100]; char tanya; atas: printf ("\n\t\t ===========================================\n");//--->header printf ("\t==== Selamat Datang di Program Puzzle angka tipe 2 ====\n"); printf ("\t\t =========== Copyright by: Albert ==========\n"); printf ("\t\t\t ===========================\n\n"); for (i=0;i<80;i++){ printf ("%c", 220); _sleep (15);}printf("\n\n"); //-------------------------BEGIN PROGRAM ---------------------------------------------------------> printf("Masukkan orde :");scanf("%d",&n);//-------------->input orde n batas d=n*n; srand (time (NULL));//------------------------->buat iput secara automatic random for (i=1;ibuat iput secara manual printf("Masukkan data ke-%d=",i+1); scanf("%d",&x[i]); } */ printf("\nData random input: \n");//------->cetak data input for(i=1;ishorting data for(i=1;icetak output b=1; while(b<=n){ c=n*(b-1); if(b%2!=0){ for(i=c+1;i<=n*b;i++){ if(i=c+1;i--){ if(iFooter if(tanya=='y'){system("cls");goto atas;}else goto bawah; bawah: printf("\n\n"); for (i=0;i<80;i++){ printf ("%c", 220); _sleep(15);} printf ("\n\n\t\t\t ===========================\n"); printf ("\t\t ===========================================\n"); printf ("\t======== terima kasih telah menggunakan program saya =========\n"); printf ("\t\t ===========================================\n"); getch (); }

0 komentar :

Posting Komentar