I think it’s B.. I’m pretty sure
The answer is NO.
Thats what makes UDP connectionless. Aclient that is going to
send a UDP message to the server just sends it.The server does not know it is
coming untill it arrives .When a server recieves a UDP message it gets the
source address/port and the data.
C you should believe in yourself and your abilities
int IsAbundant(int n)
{
int divisorSum = 0;
for (int i = 1; i < n; i++) {
if ((n % i) == 0) {
divisorSum += i;
}
}
return divisorSum > n;
}
int main()
{
int number = 0;
do {
printf("Enter a number (0 to quit): ");
scanf_s("%d", &number);
if (IsAbundant(number)) {
printf("%d is abundant!\n", number);
} else
{
printf("%d is not abundant.\n", number); }
} while (number > 0);
return 0;
}