Demo entry 4069927

Hello

   

Submitted by anonymous on Mar 16, 2016 at 11:57
Language: C#. Code size: 525 Bytes.

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

namespace Hello
{
	public class Hello
	{
		public static void Main (string[] args)
		{
			Console.WriteLine ("Masukkan nama saudara : ");
			string nama = Console.In.ReadLine();
			Console.WriteLine ("Masukkan umur saudara : ");
			int umur = Convert.ToInt16(Console.ReadLine());
			Hello hai = new Hello ();
			hai.sayHello (nama,umur);
		}
		void sayHello(string name, int age)
		{
			Console.WriteLine ("Hai, " + name +". Anda berumur "+ age);
		}
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).