0
C++ Help me please
Write a simple code to input an IP number. Check the given data with few simple conditions (i.e if the number is in the range from 1 to 255 and contatenate it into IP number. You must get four numbers from the user, connect with them with dots and print them. Example input 4 6 156 255 Example output 4.6.156.255
3 Answers
+ 3
Luminous that is very easy to do.
Considering that you are a beginner, first learn how to take user input and print them. Then learn about the if statement so that you can check for that range condition.
Also if you want, make it a little interesting by checking which Class does the IP address belong to.
+ 2
đ Sandyđ
IP addresses cannot go beyond 255.
Since you have provided the answer itself so you might as well make this correction.
0
Sample program for your
Problem
https://code.sololearn.com/cOfY4lZYT087/?ref=app



