Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void calArea(int &radius) {
- printf("Area = %d\n", 3.1416 * radius * radius);
- }
- int main() {
- int radius;
- printf("Enter the radius of the circle\n");
- scanf("%d", &radius);
- calArea(radius);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement