From 30b1daa9842fac2dcec804e284f33dfba302c0f4 Mon Sep 17 00:00:00 2001 From: SaraAhere <38314182+SaraAhere@users.noreply.github.com> Date: Thu, 12 Apr 2018 12:02:31 +0300 Subject: [PATCH 1/4] Add files via upload --- main.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/main.c b/main.c index d923aa60..72a01365 100644 --- a/main.c +++ b/main.c @@ -1,15 +1,18 @@ -#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 +//NAME: AHEREZA SARAH +//REG_NO: 16/U/35 +//COURSE: COMPUTER ENGINEERING II + +#include + +int x=1; +int main() + +{ +//int x = 1; +if(x==1) +printf ("x equals 1"); +else +printf ("x does not equal 1"); +return 0; +} + From bfb3b6e9877073366e82529801a3fc0f8808eacc Mon Sep 17 00:00:00 2001 From: SaraAhere <38314182+SaraAhere@users.noreply.github.com> Date: Thu, 12 Apr 2018 12:03:13 +0300 Subject: [PATCH 2/4] Question 2 --- main.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/main.c b/main.c index 72a01365..50d5a529 100644 --- a/main.c +++ b/main.c @@ -1,18 +1,9 @@ -//NAME: AHEREZA SARAH -//REG_NO: 16/U/35 -//COURSE: COMPUTER ENGINEERING II - #include - -int x=1; +//print_a_number_h int main() - -{ -//int x = 1; -if(x==1) -printf ("x equals 1"); -else -printf ("x does not equal 1"); -return 0; + { + #ifndef PRINT_A_NUMBER_H + #define PRINT_A_NUMBER_H + void print_a_number(int x); + #endif } - From 6311b89e304298e79cf516cea572cc797adfc478 Mon Sep 17 00:00:00 2001 From: SaraAhere <38314182+SaraAhere@users.noreply.github.com> Date: Thu, 12 Apr 2018 12:04:09 +0300 Subject: [PATCH 3/4] Question 4 --- main.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 50d5a529..2e5d1393 100644 --- a/main.c +++ b/main.c @@ -1,9 +1,17 @@ +//NAME: AHEREZA SARAH +//REG_NO: 16/U/35 +//COURSE: COMPUTER ENGINEERING II #include -//print_a_number_h +#include +int i=0; int main() +{ + void AddArrays(int array1[], int array2[], int destination_array[], int size) { - #ifndef PRINT_A_NUMBER_H - #define PRINT_A_NUMBER_H - void print_a_number(int x); - #endif + for(i=0;i Date: Thu, 12 Apr 2018 12:07:51 +0300 Subject: [PATCH 4/4] Question 3 --- main.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/main.c b/main.c index 2e5d1393..9f36ad0b 100644 --- a/main.c +++ b/main.c @@ -1,17 +1,16 @@ //NAME: AHEREZA SARAH //REG_NO: 16/U/35 -//COURSE: COMPUTER ENGINEERING II +//COURSE: COMPUTER ENGINEERING #include -#include -int i=0; int main() { - void AddArrays(int array1[], int array2[], int destination_array[], int size) - { - for(i=0;i