I need help making my code work. I want it so the user inputs a number less than 50, if this is true it will print hello world. Otherwise the terminal will ask for another input.
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Asking user for a number less or equal to 50
int i = get_int("Choose a number less or equal to 50\n");
// If i is less or equal to 50 print "hello world"
if ((int) i <= 50)
{
printf("hello, world\n");
i++;
}
}