Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
2 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
REVEALED: LLM's are not so brignt at generating code. (sarcasm ... I hope) (Original Post) usonian Nov 11 OP
Gemini just this minute... lapfog_1 Nov 11 #1
Have a chuckle. Visit BoredPanda. usonian Nov 11 #2

lapfog_1

(31,459 posts)
1. Gemini just this minute...
Tue Nov 11, 2025, 03:00 PM
Nov 11

def is_odd_or_even(num):
if num % 2 == 0:
return "Even"
else:
return "Odd"

# Example usage:
number = 5
result = is_odd_or_even(number)
print(f"The number {number} is {result}.&quot

seems pretty straight forward to me.

Then I asked for it in "C"

#include

void isOddOrEven(int num) {
if (num % 2 == 0) {
printf("The number %d is Even.n", num);
} else {
printf("The number %d is Odd.n", num);
}
}

int main() {
int number;

// Ask the user for input
printf("Enter an integer: &quot ;
scanf("%d", &number);

// Call the function to determine if the number is odd or even
isOddOrEven(number);

return 0;
}

That looks good too.

usonian

(22,666 posts)
2. Have a chuckle. Visit BoredPanda.
Tue Nov 11, 2025, 04:22 PM
Nov 11

That post cost how many megawatts?

Surely, you are too Sirius.

Latest Discussions»Help & Search»Computer Help and Support»REVEALED: LLM's are not ...