Answer:
The IP (Internet protocol) provide the "Best efforts service" as it mainly providing the packet delivering service in the networking system for communication.
The IP plays an important role in the communication as it helps the data or information breaks into small packets so that it can efficiently deliver the message to its destination.
The IP is known as best effort service as it delver the data or message to their particular destination with efficiently but it does not provide any type of special service for re-transmitting the lost packet in the network.
Just be cooler than everyone else
Answer:
Explanation:
The following code is written in Java. It is a static method that takes in a String parameter and loops through the String array called arr comparing each element in the array with the word parameter that was passed. If it finds a match the method returns the index of that word, otherwise it will return -1
public static int findString(String word){
int index = -1;
for (int x = 0; x < arr.length; x++) {
if (word == arr[x]) {
index = x;
break;
}
}
return index;
}
Answer:
span > : A generic container that can be used for styling specific portions of text.
Answer:
Program :
number=int(input("Enter the number: "))#take the input from the user.
number1=number
count=0#take a variable for count.
while(number>0):#loop which check every number to be odd or not.
value=number%10 #it is used to take the every number from integer value.
number=int(number/10)#it is used to cut the number which is in the use.
if(value%2!=0):#It is used to check the number to be odd.
count=count+1#It is used to increase the value.
print("The number of Odd Digits in "+str(number1)+" is "+str(count))#It is used to print the count value of odd digit.
Output:
- If the user inputs is '1234567890', it will prints "5".
- If the user inputs is "8546587", it will prints "3".
Explanation:
- The above program is in python language, which takes the integer value from the user.
- Then The number will be distributed into many individual units with the help of a while loop.
- The while loop runs when the number is greater than 0.
- There is a two operation, one is used to take the number by the help of modulo operator because it gives the remainder.
- The second operation is used to divide the number to let the number 0.