Advertisement
Niloy007

Siam2

Apr 17th, 2021
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void calArea(int &radius) {
  4.     printf("Area = %d\n", 3.1416 * radius * radius);
  5. }
  6.  
  7. int main() {
  8.     int radius;
  9.     printf("Enter the radius of the circle\n");
  10.     scanf("%d", &radius);
  11.     calArea(radius);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement