From 5ad5f0562f0aad5770b6160b4c6610fcea9e0d60 Mon Sep 17 00:00:00 2001 From: gokulgowda <91886961+gokulgowda@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:26:27 +0530 Subject: [PATCH 1/2] Created arrays added new code --- 3rd Sem (Data Structure)/array.c | 121 +++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 3rd Sem (Data Structure)/array.c diff --git a/3rd Sem (Data Structure)/array.c b/3rd Sem (Data Structure)/array.c new file mode 100644 index 0000000..b22de75 --- /dev/null +++ b/3rd Sem (Data Structure)/array.c @@ -0,0 +1,121 @@ +#include +#include +struct Student +{ +char name[25]; + int usn; + int m1,m2,m3; +}; +char filename[15]; +int n; +struct Student s; +void Insert() +{ +FILE *fp; +int i; +printf("\n\n\tEnter how many Records: "); +scanf("%d",&n); +fp=fopen(filename,"w"); +if(fp==NULL) printf("\n\n\tError in Creating the File...."); +else +for(i=0;i Date: Tue, 4 Oct 2022 11:24:16 +0530 Subject: [PATCH 2/2] Create st1.c --- 6th sem (Software Testing)/st1.c | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 6th sem (Software Testing)/st1.c diff --git a/6th sem (Software Testing)/st1.c b/6th sem (Software Testing)/st1.c new file mode 100644 index 0000000..1adcd2f --- /dev/null +++ b/6th sem (Software Testing)/st1.c @@ -0,0 +1,49 @@ +#include +#include +int main() { +inta,b,c; +printf("Enter the sides of the triangle:\n"); +scanf("%d%d%d",&a,&b,&c); +if((a<1 || a>10)&&(b<1 || b>10)&&(c<1 || c>10)) +printf("Sides a,b and c are of out of range"); +else if((a<1 || a>10)&&(b<1 || b>10)) +printf("Sides a and b are out of range"); +else if((b<1 || b>10)&&(c<1 || c>10)) +printf("Sides b and c are out of range"); +else if((a<1 || a>10)&&(c<1 || c>10)) +printf("Sides a and c are out of range"); +else if(a<1 || a>10) +printf("side a is out of range."); +else if(b<1 || b>10) +printf("side b is out of range."); +else if(c<1 || c>10) +printf("side c is out of range."); +else + +{ +if((a