using System;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
Console.WriteLine("Hello world!");
int number = 168;
int result = 0 ;
//find sum
while(number>0){
result += number%10;
number=number/10;
}
Console.WriteLine("Value for sum of number {0}",result);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: