#include <iostream>
using namespace std;
void main()
{
double *cm,*m;
cout << "Centimeters: ";
cin >> *cm;
*m = *cm / 100.;
while(1)
{
if(*cm <= 0)
{
cout << "incorrectly entered data\nInput centimeters again: ";
cin >> *cm;
}
else
{
printf("%d centimeters = %d meters",*cm,*m);
delete cm,m;
break;
}
}
system("pause");
}