PC stands for Personal Computer (generic term) This definition appears very frequently and is found in the following Acronym Finder categories: Information technology (IT) and computers.
vowels = "aeiou"
txt = input("Enter a string: ")
print("The vowels are ",end="")
for x in txt:
if x.lower() in vowels:
print(x, end="")
I hope this helps!
Answer:
Blogs are informal articles written for the purpose of showing thought leadership and expertise on a topic. They are a great way to generate fresh content on a website and provide a catalyst for email marketing, social media promotion to drive search traffic to your website.
import java.util.Scanner;
public class JavaApplication45 {
public static String replaceLetter(String txt, String txt1, String txt2 ){
char one = txt1.charAt(0);
char two = txt2.charAt(0);
String newTxt = "";
for (int i = 0; i < txt.length(); i++){
char c = txt.charAt(i);
if (c == one){
newTxt += two;
}
else{
newTxt += c;
}
}
return newTxt;
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter your word:");
String word = scan.nextLine();
System.out.println("Enter the letter you want to replace:");
String txt1 = scan.next();
System.out.println("Enter the replacing letter:");
String txt2 = scan.next();
System.out.println(replaceLetter(word,txt1,txt2));
}
}
I hope this helps!