the numbers do not start by 1 but by 0
In retrospect, no.
11 + 11 + 88 = 11*(1 + 1 + 8) = 11*(10) = 110
The relative error puts the size of the error into context. An absolute error of 10, in a number whose value is 1 indicates a range of -9 to 11 for the true value. This means that telling you that the value is 1 is near enough pointless. On the other hand, an absolute error of 10 in a number whose value is 1 billion means that the true value is somewhere in the range 999,999,990 and 1,000,000,010. I suggest that the discrepancy is not significant. The relative error in the first case is 1000% and in the second, it is 1 millionth of 1%.
10 and 11
10/11 = 10 ÷ 11 = 0.909091
10
that does not make any sense
2 3 5 7 11 13 17 19 23
9 18 27 36 45 54 63 72 81 90 99 Answer: 11 numbers
For Those Who Have Heart was created on -20-11-10.
num$="" error=FALSE PRINT " Enter ISBN number" INPUT num$ IF LEN (num$)<>10 THEN error=TRUE FOR pos%=1 TO 10 character$=MID$(num$, pos%,1) IF ASC(character$)<48 OR ASC(character$)>57 THEN error=TRUE NEXT IF error= FALSE THEN multiplier%=11 FOR pos%=1 TO 10
num$="" error=FALSE PRINT " Enter ISBN number" INPUT num$ IF LEN (num$)<>10 THEN error=TRUE FOR pos%=1 TO 10 character$=MID$(num$, pos%,1) IF ASC(character$)<48 OR ASC(character$)>57 THEN error=TRUE NEXT IF error= FALSE THEN multiplier%=11 FOR pos%=1 TO 10
Yes. For example, the average of 9, 10, and 11 is 10. 9 + 10 + 11 = 30 30 / 3 = 10
In retrospect, no.
11 + 11 + 88 = 11*(1 + 1 + 8) = 11*(10) = 110
There are 11 numbers from 10 to 20 if we include 10 and 20. Of those, only 16 is a perfect square. So the probability if 1/11 or .09 repeating.
It is not clear what do you mean by 'logical error', but perhaps an example will help: int main (void) { FILE *f= fopen ("foobar.txt", "r"); if (f) printf ("couldn't open foobar.txt for reading"); fclose (f); } corrected version: int main (void) { FILE *f= fopen ("foobar.txt", "r"); if (f==NULL) { printf ("couldn't open foobar.txt for reading"); return 0; } fclose (f); } Logical error can be generated by using the #error directive. This directive doesn't allows the program to run, in certain conditions. An error message has been generated by the compiler because of this preprocessor directive. e.g. #define M 10 #if M!=10 #error M must be 10 #endif in this case no error mesage will be generated because M is equal to 10 #define M 11 #if M!=10 #error M must be 10 #endif in this case, as M is not equal to 10 error message will be generated by the compiler and the message will be M must be 10.