C# Program to Print Armstrong Numbers Between 1 to 1000

This blog defines how to make armstrong number program in C#.

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

namespace reversestring
{
    class programme
    {
        static void Main(string[] args)
        {
            int num,r ,save, newnum =0,count=0;
            console.writeline("enter a name");
            num = console.readline();
            save =num;
            while(num <= 1000)
            {
              while(num!=0)
              {
                 num = num/10;
                count++;
              }
              num = save;
              whaile(num!=0)
              {
                 r=num%10;
                 newnum = newnum+p0w(r,count);
                 num =num/10;
              }
              if(newnum ==save)
                 console.writeline("number is nor armstrong{0}", save);
             else
              console.writeline("number is nor armstrong");
          }
       }
   }