Skip to content

Riyarathore2928/c-project-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

c-project-

This is my c project where i am learning basics. Topic : Functions, Area calculations

include<stdio.h>

include<math.h>

float squareArea(float side); float circleArea(float rad); float rectangleArea(float a, float b);

int main() { float a = 5.0; float b = 10.0;

printf("area is : %f", rectangleArea(a, b));
return 0;

}

float squareArea(float side) { return side * side; }

float circleArea(float rad) { return 3.14 * rad * rad; }

float rectangleArea(float a, float b) { return a * b; }

About

This is my c project which i am learning basics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages