Skip to content

Instantly share code, notes, and snippets.

@hocarm
Created March 4, 2018 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hocarm/bcaf50a75f0bc2eb61f3bf64506f7e2e to your computer and use it in GitHub Desktop.
Save hocarm/bcaf50a75f0bc2eb61f3bf64506f7e2e to your computer and use it in GitHub Desktop.
while(side != 0){
printf("Give room side(zero to quit):");
scanf("%ld", &side);
area = Calc_Area(side);
if(area != 0){
printf("\nArea with side of %ld m is %ld sqr m\n",side,area);
} else {
printf("\n Size cannot exceed 25 meters\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment