Answer:
pseudo code:
x=1
q=0
while x*x<h:
{
x += 1}
q=x-1
complete code in C language
#include <stdio.h>
int main() {
int h=19;
int q=0;
int x=1;
while ((x*x)<h){
x += 1;
}
q=(x-1);
printf("The sum of total perfect squares less than %d is: %d", h,q);
return 0;
}
Explanation:
first '%d' in print statement refers to h and second '%d' in print statement refers to q
Answer:
The program will output "There are X hours in each week." (X being the amount of hours)
Explanation:
Depending on what you put in for the last variable, only the number of hours would change. The program multiplies the values together, and then outputs that value with the string shown.