Answer:
i know but you to help me ok this answer b
Answer:
Following is given the solution to each part.
All the comments are given above each step so that they can make the logic clear.
I hope it will help you!
Explanation:
Answer:
The program in Python is as follows:
num1 = int(input())
num2 = int(input())
if num1 >=0 and num2 >= 0:
print(num1+num2)
elif num1 <0 and num2 < 0:
print(num1*num2)
else:
if num1>=0:
print(num1**2)
else:
print(num2**2)
Explanation:
This gets input for both numbers
num1 = int(input())
num2 = int(input())
If both are positive, the sum is calculated and printed
<em>if num1 >=0 and num2 >= 0:</em>
<em> print(num1+num2)</em>
If both are negative, the products is calculated and printed
<em>elif num1 <0 and num2 < 0:</em>
<em> print(num1*num2)</em>
If only one of them is positive
else:
Calculate and print the square of num1 if positive
<em> if num1>=0:</em>
<em> print(num1**2)</em>
Calculate and print the square of num2 if positive
<em> else:</em>
<em> print(num2**2)</em>
A Network is definitely a Tree when any of the below properties matched.
Explanation:
A Network is synonym for connected graph. Connected graph is a graph is a path which will connect from vertex to vertex.
A Tree is a network that has no circuit. network can be differed from tree by three key properties
1. Single path property - one path connecting two vertices
2. All bridges property - every edge of a network is a bridge
3. N-1 edges property - N vertices has N-1 edges
To determine this we use to N-1 edges property as given number of vertices and no bridges.
If a network has 15 vertices it must have 15-1= 14 edges to become a tree
In some aspects, yes but these have recently been outweighed with the ad boycott youtube has not to mention google plus wasn't the most popular, to begin with, but in an overall sense yes as the name google is more often used than Facebook or twitter