current position:Home>After running, no matter what value is entered, it is equal to 0

After running, no matter what value is entered, it is equal to 0

2022-02-03 02:39:04 CSDN Q & A

#include<stdio.h>
#include<math.h>
int main()
{
double x,s;
printf("input number:\n");
scanf("lf",&x);
s=sin(x);
printf("sin of %lf is %lf\n",x,s);
return 0;
}




Refer to the answer 1:
scanf("%lf", &x);



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030239031704.html

Random recommended