991
The smallest 5 digit integer is -99999. The largest 5 digit integer is 99999. The sum is therefore 0.
9
-3
The numbers are 9, 10 and 11 with a sum of 30.
1
13
The smallest prime number that is a factor of the sum of 32009 and 52009 is: 2
The sum of the smallest and largest prime numbers within 10 is 7.
The smallest 5 digit integer is -99999. The largest 5 digit integer is 99999. The sum is therefore 0.
108
The largest prime is 97 and the smallest is 2 (1 is not considered part of the prime number set). So the sum is 97 + 2 = 99
Sum = 109 Difference = 89
Assuming that you mean the smallest POSITIVE multiple, the answer is 64.
52
100000 + 999999 = 1099999
9
#include #include #include int main(int argc, char *argv[]){int n, smallest, largest, sum, temp;if(argc < 2){printf("Syntax: foo val1[val2 [val3 [...]]]\n");exit(1);}smallest = largest = sum = atoi(argv[1]);for(n = 2; n < argc; n++){temp = atoi(argv[n]);if(temp < smallest) smallest = temp;if(temp > largest) largest = temp;sum += temp;}printf("Smallest: %i\nLargest: %i\nAverage: %i\n", smallest, largest, sum / (argc - 1));return 0;}