Professional Documents
Culture Documents
System : Assignment by Fasih Dawood "Countings"
System : Assignment by Fasih Dawood "Countings"
"Countings"
using System;
namespace ConsoleApp9
class Program
int upcount = 0;
int lowcount = 1;
int spaces = 0;
int wrd = 1;
int vowels = 1;
int cons = 0;
int sen = 1;
upcount++;
{
lowcount++;
spaces++;
wrd++;
vowels++;
else if ((text[i] >= 'a' && text[i] <= 'z') || (text[i] >= 'A' && text[i]
<= 'Z'))
cons++;
if (text[i] == 46)
sen++;
}
}
Console.WriteLine("Spaces = {0}",spaces);
Console.ReadKey();