html
You have been chosen to take part in a secret challenge.
Your mission, should you choose to accept, is to write a program that can:
#include
int main() {
int num = rand() % 100 + 1;
printf("The random number is: %d\n", num);
char* poem = "The number is quite large,\nAnd the digits are quite bold.\n";
for (int i = 0; i < 5; i++) {
printf("%s", poem);
}
printf("\n");
int sum = 0;
for (int i = 0; i < num; i++) {
sum += i;
}
printf("The sum of the digits is: %d\n", sum);
return 0;
}