PROGRAMMING:C programming experiment 1-1
The following program variables X, y and Z are assigned initial values of 2.5, and then the values of these variables are printed on the screen. There is an error in the program. Please correct the error and submit the correct program.
int main()
{
int x=y=2.5;
printf("These values are:\n" );
printf("x=%d\n",x);
printf("y=%d\n",y);
printf("z=%d\n",z);
return 0;
}
###Output format:
When outputting the values of X, y and Z, each variable takes up one line and retains two decimal places,
###Input example:
There is no need to enter data from the keyboard
```in
```
###Output example:
```out
These values are:
x=2.50
y=2.50
z=2.50
```
answer:If there is no answer, please comment
int main()
{
int x=y=2.5;
printf("These values are:\n" );
printf("x=%d\n",x);
printf("y=%d\n",y);
printf("z=%d\n",z);
return 0;
}
###Output format:
When outputting the values of X, y and Z, each variable takes up one line and retains two decimal places,
###Input example:
There is no need to enter data from the keyboard
```in
```
###Output example:
```out
These values are:
x=2.50
y=2.50
z=2.50
```
answer:If there is no answer, please comment