1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

How to specify inputs using scanf in a particular format

Discussion in 'C' started by adityamehta, Jun 27, 2011.

  1. adityamehta

    adityamehta New Member

    Joined:
    Jun 27, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I want to make a program that accepts the radius of a circle and co-ordinates of the center.
    I want the user to specify the inputs as:
    radius:{(x,y)}

    eg, if the radius is 4, and center is at 1,2, then user should specify it as:
    4:{(1,2)}

    How to do this in C?
     

Share This Page