M182-lect1 pdf
M182-lect1 pdf
M182-lect1 pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
A simple C program: Comments Suggestion: Line up comment delimiters verticallyand use symbols such as asterisks to make yourprogram more readable. Examples:/* This function reads a sequence of temperatures and* computes the average.*//*************************************** This program simulates a simple calculator. ** It reads two numbers and an operation ** (add, subtract, multiply or divide) and then ** computes and prints the result. ****************************************/23