Hello,

I am pretty new to C programming and I would like to know how to do the following.

User types in Ip addy and Then pings ip. Here is my code now. I know all basic commands, but the system() isnt allowing two parameters. So thats where im lost.

Code:
#include <stdlib.h>
#include <stdio.h>

void main(void) {
	float ip;
	
	printf("Enter in ip addy: ");
	scanf("%f",&ip);
	system("ping %f", ip);

}
Any suggestions ?
Thanks