Actually i want user to provide the input.
Code:
printf("\nEnter the radius:");
scanf("%d",&r);
printf("\nEnter the coordinates of the center:");
scanf("%d%d",%x,%y);
Instead of this, i want user to enter like this:
Code:
printf("\nEnter the radius and the coordinates of the center: [r:{(x,y)}]
scanf(......);
what should i write in the scanf() so that the user on running the program, see the screen like this:
Code:
Enter the radius and the coordinates of the center: [r:{(x,y)}]
4:{(1,2)} // user enters only 4,1,2. not :,{,(,),}
but i dont know how to do this. can u plz help me with this?