i do not know . where curely brace use in nested if

The rules don't change just because you're nesting a control structure:

if (foo)
{
    if (bar)
    {
        // Blah blah
    }
}
else
{
    if (baz)
    {
        // Blah blah
    }
    else
    {
        // Blah blah
    }
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.