using System;using System.Text;using System.Collections.Generic; public class Test{ public static void Main() { string nama = "dimas fauzan"; for (int i = nama.Length - 1; i >= 0; i--) { if (i == nama.Length - 1 || i == 0 || i % 6 == 0) { System.Console.Write("*"); } else { System.Console.Write(nama[i]); } } }}
Standard input is empty
*azua* sami*
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!