pls. help me guys.

using System;
using System.Collections.Generic;
using System.Text;

namespace recursive_amstrong
{
    class Program
    {
        static void Main(string[] args)
        {
            string str;
            Console.WriteLine(" Enter the number ");
            str = Console.ReadLine();

            int convert = int.Parse(str);

            int armstrong_no = armstrong(convert);
            Console.WriteLine(armstrong_no);
            Console.ReadLine();

        }

        static int armstrong(int value)
        {
            int factor, remainder,total = 0;

            while (value > 0)
            {
                factor = value / 10;
                remainder = value % 10;
                total = total + remainder * remainder * remainder;
                value = factor;
                //return value;
            
            }
            return 1;
        
        }
    }
}
This question has already been answered. Start a new discussion instead.