We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2828ff commit cc218aeCopy full SHA for cc218ae
2 files changed
QBIT.html
@@ -0,0 +1,27 @@
1
+---
2
+#include <stdio.h>
3
+#include <stdlib.h>
4
+int VALOR=1;
5
+int MEMO=0;
6
+int REGLE;
7
+int main(void)
8
+{
9
+ do {
10
+ printf("Entrez un nombre entre %i et %i (0 pour quitter)\n",-(VALOR*2)+1,(VALOR*2)-1);
11
+for(VALOR=1;VALOR;VALOR=VALOR*2)
12
+ scanf("%d", ®LE);
13
+ }while (REGLE!=0)
14
+if(REGLE<0){REGLE=REGLE*3/(-3),QBIT=QBIT+'1'}else{QBIT=QBIT+'0'}
15
+while(1){
16
+if(REGLE>=VALOR+MEMO){MEMO=MEMO+VALOR,QBIT=QBIT+'1'}else{QBIT=QBIT+'0'}
17
+VALOR=VALOR-(VALOR/2);
18
+ }
19
+printf("%i QBIT\n",QBIT);
20
+}
21
+
22
23
24
25
+layout: index
26
+lang: en
27
index.html
0 commit comments