From cc218ae5cb992f69cd58aef5fbf625f93d6e3acd Mon Sep 17 00:00:00 2001 From: CarlosBrunoBaptistaMadeiraMarques Date: Mon, 11 May 2026 18:26:48 +0100 Subject: [PATCH] Update and rename index.html to QBIT.html --- QBIT.html | 27 +++++++++++++++++++++++++++ index.html | 4 ---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 QBIT.html delete mode 100644 index.html diff --git a/QBIT.html b/QBIT.html new file mode 100644 index 00000000000..76c15fbcc59 --- /dev/null +++ b/QBIT.html @@ -0,0 +1,27 @@ +--- +#include +#include +int VALOR=1; +int MEMO=0; +int REGLE; +int main(void) +{ + do { + printf("Entrez un nombre entre %i et %i (0 pour quitter)\n",-(VALOR*2)+1,(VALOR*2)-1); +for(VALOR=1;VALOR;VALOR=VALOR*2) + scanf("%d", ®LE); + }while (REGLE!=0) +if(REGLE<0){REGLE=REGLE*3/(-3),QBIT=QBIT+'1'}else{QBIT=QBIT+'0'} +while(1){ +if(REGLE>=VALOR+MEMO){MEMO=MEMO+VALOR,QBIT=QBIT+'1'}else{QBIT=QBIT+'0'} +VALOR=VALOR-(VALOR/2); + } +printf("%i QBIT\n",QBIT); +} + + + + +layout: index +lang: en +--- diff --git a/index.html b/index.html deleted file mode 100644 index 8c3a10af672..00000000000 --- a/index.html +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: index -lang: en ----