Write a program to input many ips in one line separated by space from keyboard :- (for example 126.96.36.199/24 [url removed, login to view] 172.16.254.1)
task 0: print ip1
task 1 :print the network mask of ip1
task 2: print the network address of ip1
task 3: print the broadcast address of ip1
task 4:check if ip2 is on same network as ip1
task 5: print ip1 in base 16 and ip2 in base 8
task 6: if the answer to task 4 is yes , display -60. otherwise ,show signs of networks that could be part of ip2, if ip2 not part of network, then display the empty list, so only -6.
task 7:print ip1 and ip2 in binary format
task 8:print ip1 and ip2 in base 32.