/* * Program: Class2a.c * * define 2 vars xx yy * print their sum and product * */ #include // include fucntions in library stdio.h int main(void) // header for main function { // Begin the main funciton block int xx,yy; // declare integer variables xx and yy xx=7; // assign xx value of 7 yy=13; // assign xx value of 13 printf(" The product of %d and %d is %d\n", xx,yy,xx*yy); // output and calculate product of xx and yy printf(" The sum of %d and %d is %d\n", xx, yy, xx+yy); // output and calculate sim of xx and yy system("date"); // call the date command return 0; // return int 0 at end of main funciton } // end main block