求一个实数x的n倍。
输入格式:
在一行中输入一个实数和一个整数,两个数之间用一个空格间隔,没有其他任何普通字符。
输出格式:
在一行中按照“y=结果”,结果保留6位小数,没有宽度控制。
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a;
long long b;
cin>>a>>b;
cout<<"y=";
cout<<fixed<<setprecision(6)<<a*b;
}
double 实数,n;
cin >> 实数 >> n;
double 结果 = 实数 *n;
#include <iostream>
using namespace std;
int main()
{
double x;
int n;
cin >> x >> n;
cout << "y="<< fixed << setprecision(6) << x*n <<endl;
return 0;
}
#include<cstdio>
int main(){
double a,b;
scanf("%lf%lf",&a,&b);
printf("y=%.6lf",a*b);
return 0;
}