Final answer:
A C program has been provided that declares two integer variables and a float variable, initializes them with the given values, and prints them out. The program uses standard input/output headers and the printf function.
Step-by-step explanation:
The student has asked to write a C program that declares two integer variables and one float variable, initializes them with the values 10, 15, and 12.6 respectively, and then prints these values on the screen. Here is a simple program that accomplishes this task:
#include
int main() {
int num1 = 10; // Declare and initialize the first integer variable
int num2 = 15; // Declare and initialize the second integer variable
float num3 = 12.6; // Declare and initialize the float variable
printf("Integer 1: %d\\", num1); // Print the first integer
printf("Integer 2: %d\\", num2); // Print the second integer
printf("Float: %f\\", num3); // Print the float
return 0;
}
When run, this program will display the values of the variables on your screen.