GeeksforGeeks » C/C++ Programming Questions
printing
(2 posts)-
how to print 2.3 instead of 2.300000 float type without using .1f;...........
-
int main() { float x = 2.3; printf("%1.1f", x); return 0; }
Reply
You must log in to post.
how to print 2.3 instead of 2.300000 float type without using .1f;...........
int main()
{
float x = 2.3;
printf("%1.1f", x);
return 0;
}
You must log in to post.