Lucky Number
Description
Solution
...
printf("Enter a number to check if its a lucky number: ");
scanf("%llu",&userInput);
userInput = reverseNumber(userInput);
luckyNumberGen(&luckyNumber);
if (luckyNumber == userInput) {
puts("Wow ! You guessed the lucky number.");
puts("Now submit the lucky number to get your points");
}
else {
puts("Damn ! You are unlucky like me :( ");
}
...Last updated