Онлайн компилятор C

#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; //Дано неотрицательное целое число N не более 9 цифр. Необходимо напечатать произведение наибольшей и наименьшей цифры числа. }
1) The provided code prints "Hello, World!" but the comment describes a different task: finding the product of the largest and smallest digits in a non-negative integer with up to 9 digits.

2) Hint 1: You'll need to extract individual digits from the number. Consider using a loop with modulus (%) and division (/) operations.
Hint 2: Initialize variables for min and max digits before the loop, then update them as you examine each digit.