jamadagni
8th January 2006, 15:34
I wrote a program:
int main(void) {
double iiput;
printf("\n\nEnter a degree value: ");
scanf("%14.10f", &iiput);
printf("%14.10f\n", iiput);}
and the user-machine interaction upon compiling this was:
Enter a degree value: 200.5896113248
2.1702880859
Please explain what I am doing wrong?
Thank you.
int main(void) {
double iiput;
printf("\n\nEnter a degree value: ");
scanf("%14.10f", &iiput);
printf("%14.10f\n", iiput);}
and the user-machine interaction upon compiling this was:
Enter a degree value: 200.5896113248
2.1702880859
Please explain what I am doing wrong?
Thank you.