Thursday, 6 October 2011

How would you round off a value from 1.66 to 2.0 in C-language?

main()
{
printf("%f",ceil(1.66));
}

Output: 2.0

No comments:

Post a Comment