I am clueless on this assignment I dont know how to use scanf yet so I have to use chars
insertCode:#include<stdio.h> main() { printf("Please enter an octal number ending with # \n"); char a,b,c,d,e=0; while((d=getchar())!='\n') { while(d!='\n') { a=c-'0'; char k=getchar(); if(k=='#') { int f=a,c; octal(f); break; } } } } void octal(int f) { int decimal=1, i=0, rem=1; f=0; while (f<=3) { decimal=rem* pow(8,i++); printf("The converted value is %d\n",decimal); f++; printf("%d\n",i); } }