From db80cf5df3f208b3ef4058390122794c95ed0c04 Mon Sep 17 00:00:00 2001 From: Pranjal <74787562+pranjal698@users.noreply.github.com> Date: Tue, 26 Oct 2021 17:29:58 +0530 Subject: [PATCH 1/2] Added new c projects. --- c codes/Print_a_poem.c | 9 +++++++++ c codes/Sine_value_calculator.c | 11 +++++++++++ c codes/Volume_calculator.c | 9 +++++++++ 3 files changed, 29 insertions(+) create mode 100644 c codes/Print_a_poem.c create mode 100644 c codes/Sine_value_calculator.c create mode 100644 c codes/Volume_calculator.c diff --git a/c codes/Print_a_poem.c b/c codes/Print_a_poem.c new file mode 100644 index 00000000..b9f6df4b --- /dev/null +++ b/c codes/Print_a_poem.c @@ -0,0 +1,9 @@ +#include +int main(void) +{     +printf("Roses are red\n");     +printf("violets are blue\n");     +printf("sugar is sweet\n");     +printf("and so are you\n");     +return 0; +} \ No newline at end of file diff --git a/c codes/Sine_value_calculator.c b/c codes/Sine_value_calculator.c new file mode 100644 index 00000000..ba1fb73b --- /dev/null +++ b/c codes/Sine_value_calculator.c @@ -0,0 +1,11 @@ +#include +#include +int main(void) +{     +double sinValue,X;     +printf("please enter the value of calculate sine:");   +scanf("%lf",&X);     +sinValue=sin(X);     +printf("\n The sine value of %lf=%lf",X,sinValue);     +return 0; +} \ No newline at end of file diff --git a/c codes/Volume_calculator.c b/c codes/Volume_calculator.c new file mode 100644 index 00000000..ca2f758a --- /dev/null +++ b/c codes/Volume_calculator.c @@ -0,0 +1,9 @@ +#include +#define PI 3.14159 +int main(void) +{ +int radius; printf("Enter radius:"); +scanf("%d", &radius); +printf("volume is : %lf \n\n", 4 *radius*radius*radius/3 ); +return 0; +} \ No newline at end of file From ad51bb39bbc1f815559db19839a13fb6d371657a Mon Sep 17 00:00:00 2001 From: Pranjal <74787562+pranjal698@users.noreply.github.com> Date: Tue, 26 Oct 2021 17:31:05 +0530 Subject: [PATCH 2/2] Added new member --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9b8342d9..60b746d2 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,4 @@ Vatsla Adhiakri
Sana Shah
Archit Gupta
Samrat Khan
+Pranjal