From 63220a769b852baf7d3a582b7231e053fab5de36 Mon Sep 17 00:00:00 2001
From: TANYOOMWARICHARD <38227200+TANYOOMWARICHARD@users.noreply.github.com>
Date: Thu, 12 Apr 2018 11:43:29 +0300
Subject: [PATCH] TANYOOMWA RICHARD 17/U/1913
---
Numberfour.cbp | 44 ++++++++++++++++++++++++++++++++++++++++
Numberthree.cbp | 44 ++++++++++++++++++++++++++++++++++++++++
do_it.h | 6 ++++++
doit.h | 1 +
done.h | 1 +
main.c | 52 ++++++++++++++++++++++++++++++++++--------------
print_a_number.h | 6 ++++++
question two.cbp | 44 ++++++++++++++++++++++++++++++++++++++++
8 files changed, 183 insertions(+), 15 deletions(-)
create mode 100644 Numberfour.cbp
create mode 100644 Numberthree.cbp
create mode 100644 do_it.h
create mode 100644 doit.h
create mode 100644 done.h
create mode 100644 print_a_number.h
create mode 100644 question two.cbp
diff --git a/Numberfour.cbp b/Numberfour.cbp
new file mode 100644
index 00000000..bd143785
--- /dev/null
+++ b/Numberfour.cbp
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Numberthree.cbp b/Numberthree.cbp
new file mode 100644
index 00000000..27198f36
--- /dev/null
+++ b/Numberthree.cbp
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/do_it.h b/do_it.h
new file mode 100644
index 00000000..d462baf8
--- /dev/null
+++ b/do_it.h
@@ -0,0 +1,6 @@
+#ifndef DO_IT_H
+#define DO_IT_H
+
+float DO_IT_H(char x,char y,char z);
+
+#endif // DO_IT_H
diff --git a/doit.h b/doit.h
new file mode 100644
index 00000000..d3f5a12f
--- /dev/null
+++ b/doit.h
@@ -0,0 +1 @@
+
diff --git a/done.h b/done.h
new file mode 100644
index 00000000..59372d07
--- /dev/null
+++ b/done.h
@@ -0,0 +1 @@
+#define AGE 20
diff --git a/main.c b/main.c
index d923aa60..98d84e05 100644
--- a/main.c
+++ b/main.c
@@ -1,15 +1,37 @@
-#include
-#include
-
-main(){
- char some_string[] = {};
- for (int i = 0; i < 20; ++i) {
- scanf("%s", some_string);
- if (some_string[i] == EOF)
- {
- break;
- }
- }
- putchar(some_string);
-
-}
\ No newline at end of file
+#include
+#include
+#include
+#include
+#include
+
+
+void addarrays(int arrayone[5],int arraytwo[5]){
+ int i;
+ int sum[5];
+ printf("\nTotal arrays\n");
+ for(i=0;i<5;i++){
+ sum[i] = arrayone[i] + arraytwo[i];
+ printf(" %d\t",sum[i]);
+ }
+ return;
+}
+int main()
+{
+ int m;
+ int arrayA[5] = {23,24,31,40,5};
+ int arrayB[5] = {21,22,23,24,25};
+ printf("first array\n");
+ for(m=0;m<5;m++){
+ printf(" %d\t",arrayA[m]);
+ }
+ printf("\nsecond array\n");
+ for(m=0;m<5;m++){
+ printf(" %d\t",arrayB[m]);
+ }
+
+ addarrays(arrayA,arrayB);
+
+ return 0;
+}
+
+
diff --git a/print_a_number.h b/print_a_number.h
new file mode 100644
index 00000000..3baa377b
--- /dev/null
+++ b/print_a_number.h
@@ -0,0 +1,6 @@
+#ifndef PRINT_A_NUMBER_H
+#define PRINT_A_NUMBER_H
+
+float PRINT_A_NUMBER_H(int a);
+
+#endif // PRINT_A_NUMBER_H
diff --git a/question two.cbp b/question two.cbp
new file mode 100644
index 00000000..8dba2b18
--- /dev/null
+++ b/question two.cbp
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+