Untitled
Anonymous
plain_text
01/07/2025 4:01 PM
340 B
17
Indexable
#include <stdio.h>
int main() {
int number = 2008;
// Extract last two digits
int last_two_digits = number % 100;
// Print directly as two digits (using %02d for padding zero)
printf("%02d\n", last_two_digits);
return 0;
}Editor is loading...
Leave a Comment