Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions Numberfour.cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Numberfour" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\Numberfour" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin\Release\Numberfour" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="main.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
44 changes: 44 additions & 0 deletions Numberthree.cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Numberthree" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\Numberthree" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin\Release\Numberthree" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="main.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
6 changes: 6 additions & 0 deletions do_it.h
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions doit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions done.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define AGE 20
52 changes: 37 additions & 15 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
#include <ctype.h>
#include <stdio.h>

main(){
char some_string[] = {};
for (int i = 0; i < 20; ++i) {
scanf("%s", some_string);
if (some_string[i] == EOF)
{
break;
}
}
putchar(some_string);

}
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include <string.h>


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;
}


6 changes: 6 additions & 0 deletions print_a_number.h
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions question two.cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="question two" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/question two" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/question two" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="main.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>