/* hello.c Started in C++ by Jeff Ondich on 30 March 1998. Rewritten in C on 11 December 2021. Modified by Tanya Amert for Fall 2023. This program says hello to the user, and squares the number 6. Exciting! To compile this program: gcc -Wall -Werror -g -o hello hello.c To run this program: ./hello */ #include // Prints two messages to the user, demonstrating printf // with format specifiers. int main() { printf("Hello, world!\n"); // Take a look at the %d. That's what's known as a "format specifier", // and tells printf in what way to print the corresponding parameters. // Here, we're printing the values of both number and number*number // as decimal (i.e., base ten) numbers. int number = 6; printf("%d squared is %d\n", number, number * number); return 0; }