Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTasks1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
elijah vasquez
CTasks1
Commits
dbeaad87
Commit
dbeaad87
authored
Jan 12, 2023
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit of the century
parent
813ab56e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
54 additions
and
0 deletions
+54
-0
HelloWorld.c
HelloWorld.c
+1
-0
functions_demo.c
functions_demo.c
+1
-0
morse.c
morse.c
+47
-0
morse.exe
morse.exe
+0
-0
printfDemo.c
printfDemo.c
+1
-0
strings_demo.c
strings_demo.c
+1
-0
tempCodeRunnerFile.c
tempCodeRunnerFile.c
+1
-0
variables_demo.c
variables_demo.c
+2
-0
variables_demo.exe
variables_demo.exe
+0
-0
No files found.
HelloWorld.c
View file @
dbeaad87
// Task 1
#include <stdio.h>
int
main
(
void
)
{
...
...
functions_demo.c
View file @
dbeaad87
// Task 7
#include <stdio.h>
int
midFunction
(
int
x
,
int
y
,
int
z
)
{
...
...
morse.c
View file @
dbeaad87
// Task 9
#include <stdio.h>
#include <string.h>
enum
alphaBet
{
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
o
,
p
,
q
,
r
,
s
,
t
,
u
,
v
,
w
,
x
,
y
,
z
};
int
main
(){
char
*
morseCode
[]
=
{
".-"
,
//A
"-..."
,
//B
"-.-."
,
//C
"-.."
,
//D
"."
,
//E
"..-."
,
//F
"--."
,
//G
"...."
,
//H
".."
,
//I
".---"
,
//J
"-.-"
,
//K
".-.."
,
//L
"--"
,
//M
"-."
,
//N
"---"
,
//O
".--."
,
//P
"--.-"
,
//Q
".-."
,
//R
"..."
,
//S
"-"
,
//T
"..-"
,
//U
"...-"
,
//V
".--"
,
//W
"-..-"
,
//X
"-.--"
,
//Y
"--.."
,
//Z
};
char
keyInput
[
50
];
//enum alphaBet keyInput;
printf
(
"Enter string: "
);
scanf
(
"%s"
,
keyInput
);
printf
(
"
\n
decoded: %s"
,
keyInput
);
for
(
int
i
=
0
;
i
<
26
;
i
++
){
printf
(
"%s
\n
"
,
morseCode
[
i
]);
}
return
0
;
}
morse.exe
View file @
dbeaad87
No preview for this file type
printfDemo.c
View file @
dbeaad87
// Task 2 + 3 + 4 + 5
#include <stdio.h>
int
main
(
void
)
{
...
...
strings_demo.c
View file @
dbeaad87
// Task 8
#include <stdio.h>
#include <string.h>
...
...
tempCodeRunnerFile.c
0 → 100644
View file @
dbeaad87
enum
engAlphabet
{
a
,};
variables_demo.c
View file @
dbeaad87
// Task 6
#include <stdio.h>
enum
days
{
mon
,
tue
,
wed
,
thu
,
fri
,
sat
,
sun
};
...
...
@@ -7,5 +8,6 @@ int main(){
int
numbers
[
7
]
=
{
10
,
15
,
5
,
60
,
20
,
40
,
30
};
today
=
thu
;
printf
(
"%d"
,
today
[
numbers
]);
return
0
;
}
variables_demo.exe
View file @
dbeaad87
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment