Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as C# by sako007 ( 5 years ago )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
{
string metin;
Console.Write("Enter letters and zero : ");
metin = Console.ReadLine();
int sayac = 0;
for (int i = 0; i <= metin.Length; i++)
{
if (metin[i] == '0')
{
sayac++;
}
}
Console.WriteLine("Girilen Metindeki 0 adeti : {0}", sayac);
Console.ReadKey();
}
}
}
}
Revise this Paste