Answer:
The program in C is as follows:
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
if(n<11 || n>100){
printf("Input must be between 11 - 100"); }
else{
while(n%11 != 0){
printf("%d ", n);
n--; }
printf("%d ", n); }
return 0;
}
Explanation:
The existing template can not be used. So, I design the program from scratch.
This declares the number n, as integer
int n;
This gets input for n
scanf("%d", &n);
This checks if input is within range (11 - 100, inclusive)
if(n<11 || n>100){
The following prompt is printed if the number is out of range
printf("Input must be between 11 - 100"); }
else{
If input is within range, the countdown is printed
while(n%11 != 0){ ----This checks if the digits are identical using modulus 11
Print the digit
printf("%d ", n);
Decrement by 1
n--; }
This prints the last expected output
printf("%d ", n); }
If you save the input as num,
this will print the input 8 times.
num = input("Enter a number: ")
print(num * 8)
If you want to do actual math calculations,
then the input needs to be a number.
num = float(input("Enter a number: "))
print(num * 8)
This doesn't account for any errors in which the user doesn't input a number, but I don't think that's what you were looking for anyway :)
Answer:
I'm sure the answer is A
Explanation:
It could not be B because it never not overloaded