hey guys, i have been trying to get this to work for a while now but i cant seem to puzzle it together. Could you maybe give suggestions on what to do.


Basically what i am trying to do is to write a small program that prints out a bit of text say around 50 times and then asks you for a password, if you get it wrong then it prints out that same bit of text another 50 times. But if you get it right then it will print out "correct", and then ends.


all help, tips. and suggestions are greatly appreciated

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


int main()
{
    int pass = 567;
    int guess;


    printf("Please enter the password: ");
    scanf("%d", &guess);

    while(guess != pass)
    {
         printf("Incorrect")  // bit of text that get displayed 50 times
    }


    if(guess != pass)
    {
        printf("incorrect");
    }
    else
    {
        printf("correct");
    }
    return 0;
}