#include <iostream>
using namespace std;
int main() {
double pi;
pi=(float)22/7;
int n; cin>>n; int i;
for( i=n;i>0;i--)
{cout.precision(i); cout<<pi<<endl;} i++;
cout<<"\n previous Setting:"<<i;
return 0;
}
using namespace std;
int main() {
double pi;
pi=(float)22/7;
int n; cin>>n; int i;
for( i=n;i>0;i--)
{cout.precision(i); cout<<pi<<endl;} i++;
cout<<"\n previous Setting:"<<i;
return 0;
}
No comments:
Post a Comment