CHALLANGE: Ip Subnetting. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

CHALLANGE: Ip Subnetting.

Write a program that take an IP address as input and the IP address CIDR (Classless Inter-Domain Routing ). The program should output the following: 1- Number of bits borrowed. 2- Number of bits remained. 3- Number of subnets. 4- number of hosts available. 5- the block size. here is a sample of code I did when I was learning subletting. https://code.sololearn.com/c5n8R6Uis2ak/?ref=app I had little knowledge on C language then and I still have!

16th Jan 2018, 4:42 PM
StoneCoder🇬🇦
StoneCoder🇬🇦 - avatar
2 Answers
+ 5
Can I see the sample codes please.
16th Jan 2018, 6:29 PM
Saumya
Saumya - avatar
+ 4
I've added the code link
16th Jan 2018, 6:36 PM
StoneCoder🇬🇦
StoneCoder🇬🇦 - avatar