Question
Print the Value of PI with the Precision of 12 Decimal Points.
TestCase Input Expected Output
3.142857142857
Answer
#include <stdio.h>
int main()
{
printf("%.12f",22.0/7.0);
return 0;
}
Follow Us More
All the news and updates relevant to Engineering. You can also Write a post here
#include <stdio.h>
int main()
{
printf("%.12f",22.0/7.0);
return 0;
}
Hello My Name is DP Learn Engineering with Subscribe us to get Notified about New Post
Learn More →
This comment has been removed by a blog administrator.
ReplyDelete