Why is "if "and "while" not interchangeable in my python-3.x code below? :     a=1
    b=a+1
    c=a+b
    x=0 

    while c < 5:
        c=c+1
        x=x+1
    if c == 5:
        print ("\n It took this many loops to make C=5: ",x)
        

The above code works as I want but, I need the below code to work. I'm suppose to use If/Else functions but, can only get the While function to run for me. 

    if c < 5:
        c=c+1
        x=x+1
    if c == 5:
        print ("\n It took this many loops to make C=5: ",x)
        
I've tried several different ways but would appreciate any helpful explanation on why it doesn't run.