تبلیغات
 int i=0, a,k;
                int[] s = new int[32];
                a = Convert.ToInt32(textBox1.Text);
                while (a > 0)
                {
                     s[i]=a % 8;
                     i++;
                     a =a/ 8;
                }
                for (int j = (i - 1); j >= 0; j--)
                {
                    label1.Text += s[j].ToString();
                }