Write, compile and run a complete first C program

Starting from a blank file, write rectangle.c. Read two integer dimensions width and height, each in 0..100. Print area=A perimeter=P on one line. Print invalid if two integers are not available or either value is outside the allowed range. A zero dimension is valid. No interactive prompt text should be printed.

    Explain the purpose of the include line, main, declarations, the address-of symbols in scanf and return 0. Give Unix shell commands to show the current directory, list its files, create and enter a practice directory, compile with C17 warnings enabled, and run the program with input 3 4. Include an example using input redirection from an existing input.txt file.

Assume every integer token supplied is representable in int.


