270
edits
(Created page with "== Convert: Octagonal to Decimal == * Step 1: Get all the packs and the otod function * Step 2: Get the main function and call the otod function <syntaxhighlight lang="c" line style="border: 1px dashed red;"> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int otod(char *o) { int i; int d = 0; int p = 0, t = 0; for (i = strlen(o) - 1; i >= 0; i--) { if ((o[i] >= '0') && (o[i] <= '7')) { t...") |
(No difference)
|
edits