DECLARATION STATEMENT
1. #include <stdio.h>
/*this is a library in the C compiler which is the software where you run the programs.*/
2. int main()
/*this is the main function of the program, the body of the program will be inside this function.*/
3. { int x, y, z;
/*this is the declaration of variables of type integer*/
4.printf("Enter two numbers to multiply(enter a space between numbers): );
/*printf('''); is a function in the compiler which outputs what's in between the " " to the monitor*/
5. scanf("%d%d", &x, &y);
/*scanf(""); is another function except this one inputs what's in between the " " and stores it into the variable for this example x and y*/
6. z = x * y;
/*the = sign is an assignment to the left, so it assigns the product of x and y to the variable z*/
7. printf("The product is : %d", z);
8. return 0;
/*this code is what tells the compiler that you are terminating the program it returns 0 to the operating system*/
9. }
/* this is the closing bracket just like in a math funtion*/
1. #include
/*this is a library in the C compiler which is the software where you run the programs.*/
2. int main()
/*this is the main function of the program, the body of the program will be inside this function.*/
3. { int x, y, z;
/*this is the declaration of variables of type integer*/
4.printf("Enter two numbers to multiply(enter a space between numbers): );
/*printf('''); is a function in the compiler which outputs what's in between the " " to the monitor*/
5. scanf("%d%d", &x, &y);
/*scanf(""); is another function except this one inputs what's in between the " " and stores it into the variable for this example x and y*/
6. z = x * y;
/*the = sign is an assignment to the left, so it assigns the product of x and y to the variable z*/
7. printf("The product is : %d", z);
8. return 0;
/*this code is what tells the compiler that you are terminating the program it returns 0 to the operating system*/
9. }
/* this is the closing bracket just like in a math funtion*/