小白求助
#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)
}
显示这个 C:\Users\Administrator\Desktop\sin x c语言.cpp expected ';' before 'printf'
说什么这个 ;要在'printf前面
怎么解决0基础 应该是指
s=sin(x)
最后加个 ; 冬雪雪冬 发表于 2021-9-29 11:14
应该是指
s=sin(x)
最后加个 ;
是的谢谢啦!!! s=sin(x)
printf;("sin of %lf is %lf\n",x,s)
改为
s=sin(x) ;
printf("sin of %lf is %lf\n",x,s) ;
页:
[1]