#include#includevoid main(){int q,qq,t,pil;char pil2;
{
{clrscr() ;printf("\nMasukan nilai\n");printf("Nilai Masukan S : ");scanf("%d",&q);printf("Nilai Masukan R : ");scanf("%d",&qq);}while(!(((q==1)(q==0))&&((qq==1)(qq==0))));printf("\n\nMasukan Pilihan Flip FLop\n\t1.FF-RS\n\t2.FF-RS Berdetak\n");fflush(stdin);printf("Pilihan (sesuai nomor): ");scanf("%d",&pil);switch(pil){case 1:printf("\n\nMasukan Mode Operasi :\n\t10.Larangan(FF-RS)\n\t11.SET(FF-RS)\n\t12.RESET(FF-RS)\n\t13.TETAP(FF-RS)\n");fflush(stdin);printf("Pilihan (sesuai nomor): ");scanf("%d",&pil);switch(pil){case 10:if(q==0&&qq==0)printf("\n\nOutput Mode\nQ = 1\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 11:if(q==0&&qq==1)printf("\n\nOutput Mode\nQ = 1\nQ' = 0\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 12:if(q==1&&qq==0)printf("\n\nOutput Mode\nQ = 0\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 13:if(q==1&&qq==1)printf("\nKeluaran Tak Berubah\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;}
case 2:printf("\n\nMasukan Mode Operasi :\n\t20.Larangan(FF-RS berdetak)\n\t21.SET(FF-RS berdetak)\n\t22.RESET(FF-RS berdetak)\n\t23.TETAP(FF-RS berdetak)\n");fflush(stdin);printf("Pilihan (sesuai nomor): ");scanf("%d",&pil);switch(pil){case 20:if(q==0&&qq==0)printf("\nTIDAK BERUBAH\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 21:if(q==0&&qq==1)printf("\n\nOutput Mode\nQ = 0\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 22:if(q==1&&qq==0)printf("\n\nOutput Mode\nQ = 1\nQ' = 0\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 23:if(q==1&&qq==1)printf("\n\nOutput Mode\nQ = 1\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;}break;}getch();printf("\nMau Ulang ? (bila ingin, pilih 'y' saja) ");fflush(stdin);scanf("%c",&pil2);
while(pil2=='y');}getch();
}
{
{clrscr() ;printf("\nMasukan nilai\n");printf("Nilai Masukan S : ");scanf("%d",&q);printf("Nilai Masukan R : ");scanf("%d",&qq);}while(!(((q==1)(q==0))&&((qq==1)(qq==0))));printf("\n\nMasukan Pilihan Flip FLop\n\t1.FF-RS\n\t2.FF-RS Berdetak\n");fflush(stdin);printf("Pilihan (sesuai nomor): ");scanf("%d",&pil);switch(pil){case 1:printf("\n\nMasukan Mode Operasi :\n\t10.Larangan(FF-RS)\n\t11.SET(FF-RS)\n\t12.RESET(FF-RS)\n\t13.TETAP(FF-RS)\n");fflush(stdin);printf("Pilihan (sesuai nomor): ");scanf("%d",&pil);switch(pil){case 10:if(q==0&&qq==0)printf("\n\nOutput Mode\nQ = 1\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 11:if(q==0&&qq==1)printf("\n\nOutput Mode\nQ = 1\nQ' = 0\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 12:if(q==1&&qq==0)printf("\n\nOutput Mode\nQ = 0\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 13:if(q==1&&qq==1)printf("\nKeluaran Tak Berubah\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;}
case 2:printf("\n\nMasukan Mode Operasi :\n\t20.Larangan(FF-RS berdetak)\n\t21.SET(FF-RS berdetak)\n\t22.RESET(FF-RS berdetak)\n\t23.TETAP(FF-RS berdetak)\n");fflush(stdin);printf("Pilihan (sesuai nomor): ");scanf("%d",&pil);switch(pil){case 20:if(q==0&&qq==0)printf("\nTIDAK BERUBAH\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 21:if(q==0&&qq==1)printf("\n\nOutput Mode\nQ = 0\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 22:if(q==1&&qq==0)printf("\n\nOutput Mode\nQ = 1\nQ' = 0\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;case 23:if(q==1&&qq==1)printf("\n\nOutput Mode\nQ = 1\nQ' = 1\n\n");elseprintf("\nINPUT BUKAN MODE INI\n");break;}break;}getch();printf("\nMau Ulang ? (bila ingin, pilih 'y' saja) ");fflush(stdin);scanf("%c",&pil2);
while(pil2=='y');}getch();
}
Labels : wallpapers Mobile Games car body design Hot Deal
0 komentar:
Posting Komentar