You are viewing this question as it will appear in the manual grading interface. Return to the normal view when you are done.

Autograder demo: Square function in C (Standard Output Override)

Write a function square that, given an integer number, returns its square. The function must follow the following prototype:

int square(int num);
square.c

Correct answer

1
2
3
4
int square(int num) {
  return num * num;
}
  

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Autograder demo: Square function in C (Standard Output Override)

Variant

Started at:
2026-09-19 10:07:06 (CDT)
Duration:
0s
Show/Hide answer
{}
History
dec frac
rad deg