ðHgeocities.com/SoHo/Gallery/3793/Exer15.htmgeocities.com/SoHo/Gallery/3793/Exer15.htmdelayedxooÔJÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈË| OKtext/htmlà{j| ÿÿÿÿb‰.HWed, 21 Jan 2004 22:24:27 GMT½ Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, *noÔJ| 
using System;

namespace Modulo3
{
	/// 
	/// Summary description for Class1.
	/// 
	class Principal
	{
		/// 
		/// The main entry point for the application.
		/// 
		[STAThread]
		static void Main(string[] args)
		{
			// criando instancia dos objetos do projeto
			Video tv = new Video();
			Teclado tec = new Teclado();
			//
			// TODO: Add code to start application here
			//
			int idade;
			do 
			{			
				tv.saida("Digite sua idade ");
				tec.CapturaInt(out idade);
				if( idade < 16 )			
				{
					tv.saida("Tem que crescer mais");
				} 
				else 
				{
					tv.saida("Está no ponto, já pode ");
				}
               tv.saida("Digite f = FIM\n");               
			   if(tec.CapturaString().ToUpper().Equals("F")) break;
			} while(true);
		}
	}
	public class Video {
		public void saida(string str)
		{
         Console.Write("\n"+ str);
		}
		public void saida(int a)
		{
			Console.Write("\n"+ a);
		}
		public void saida(long a)
		{
			Console.Write("\n"+ a);
		}

	}
	public class Teclado {
              public string buffer;
		public string CapturaString(ref string str)
		{
               buffer=Console.ReadLine();
			   str=buffer;
			   return buffer;
		}
		public string CapturaString()
		{
			buffer=Console.ReadLine();			
			return buffer;
		}

		public int CapturaInt(out  int a)
		{
			buffer=Console.ReadLine();
			a=Int32.Parse(buffer);
			return a;
		}
		public long  CapturaLong(out long a )
		{
			buffer=Console.ReadLine();
			a=Int32.Parse(buffer);
			return a;
		}

	}
}