import java.util.Scanner;
public class JavaApplication83 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter Strings: ");
String word1 = scan.nextLine();
String word2 = scan.nextLine();
String newWord = "";
if (word1.length() == word2.length()){
for (int i = 0; i < word1.length(); i++)
{
newWord += word1.charAt(i) +""+word2.charAt(i);
}
}
else{
newWord = "error";
}
System.out.println(newWord);
}
}
I hope this helps!
Answer:
the friendships the following link and fill out our related information
Explanation:
consisting of a new one of the cell number of people who want
B. Because conditional statements have an IF before stating the condition
Answer:
import datetime
user = input("Enter date in yyyy,m,d: ").split(",")
int_date = tuple([int(x) for x in user])
year, month, day =int_date
mydate = datetime.datetime(year, month, day)
print(mydate)
x = mydate.strftime("%B %d, %Y was a %A")
print(x)
Explanation:
The datetime python module is used to create date and time objects which makes it easy working with date-time values. The user input is converted to a tuple of integer items, then they are converted to date time objects and parsed to string with the strftime method.
Answer:
a. Routing protocol
Explanation
Routing protocol is a layer 3 (Network layer) protocol used by routers to exchange information about available routes , their associated costs and delays.