Use Macro to define the value of PI and Find the Perimeter of a Circle Sumit Kar July 27, 2015 Basic, Macro No comments #include<stdio.h>#define pi 3.14void main(){ int r; r=7; printf("Perimeter=%f",2*pi*r);}Output Print Download Code OutputPerimeter=43.960000 Share This: Facebook Twitter Google+ Stumble Digg WhatsApp Email ThisBlogThis!Share to TwitterShare to Facebook
0 comments:
Post a Comment