Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
countvowels
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void retunsuces(string str1) { int count = 0; for(int i=0;i<str1.Length;i++) { if(isVowel(str1[i])) { count++; } else { count=0; } if(count==2) { Console.Write(str1[i-1]); Console.Write(str1[i]); Console.WriteLine(); } } } public static bool isVowel(char x) { if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u' ) return true; else return false; } public static void Main(string[] args) { string str1 = "Please read this application and give me gratuity"; char [] vowels = {'a','e','i','o','u'}; retunsuces(str1); } } }
run
|
edit
|
history
|
help
0
Program 1
Convert Excel Range To Absolute Excel Range
BRHOOM 111
Create Sealed Class Object
Talk To Jack
Việc Làm Bắc Ninh
INTUIT: Laba#2; Данные для графика изменяняющейся функции
Operator Overloading Example (+, -, *, /, ==, !=)
D110
UFC 271 LIVE STREAM FREE REDDIT online