Код
#include <iostream>
using namespace std;
int main()
{
float price;
cout<<"Enter the price"<<endl;
cin>>price;
for (int i=1; i<=10; i++)
{
cout<<i/10.0<<": "<<i*price/10<<endl;
}
return 0;
}
using namespace std;
int main()
{
float price;
cout<<"Enter the price"<<endl;
cin>>price;
for (int i=1; i<=10; i++)
{
cout<<i/10.0<<": "<<i*price/10<<endl;
}
return 0;
}