-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcourse_cont.html
406 lines (366 loc) · 18.1 KB
/
course_cont.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<!DOCTYPE html>
<html lang="en">
<head>
<title>Course Details</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Unicat project">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="styles/bootstrap4/bootstrap.min.css">
<link href="plugins/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="plugins/colorbox/colorbox.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="plugins/OwlCarousel2-2.2.1/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="plugins/OwlCarousel2-2.2.1/owl.theme.default.css">
<link rel="stylesheet" type="text/css" href="plugins/OwlCarousel2-2.2.1/animate.css">
<link rel="stylesheet" type="text/css" href="styles/course.css">
<style>
.new_text_cont{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.new_text_cont p{
color: black;
}
.new_text_quiz{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.new_text_quiz form{
color: black;
}
</style>
</head>
<body>
<div class="super_container">
<!-- Header -->
<header class="header">
<!-- Header Content -->
<div class="header_container">
<div class="container">
<div class="row">
<div class="col">
<li class="header_content d-flex flex-row align-items-center justify-content-start">
<div class="logo_container">
<img src="images/logo_athena.png" width="30px" height="40px">
<a href="#">
<div class="logo_text"><span>Athena</span></div>
</a>
</div>
<nav class="main_nav_contaner ml-auto">
<ul class="main_nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="courses.html">Courses</a></li>
<li><a href="#">Let's Code</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="login.html">Login</a></li>
</ul>
</nav>
</li>
</div>
</div>
</div>
</div>
<!-- Header Search Panel -->
<div class="header_search_container">
<div class="container">
<div class="row">
<div class="col">
<div class="header_search_content d-flex flex-row align-items-center justify-content-end">
<form action="#" class="header_search_form">
<input type="search" class="search_input" placeholder="Search" required="required">
<button class="header_search_button d-flex flex-column align-items-center justify-content-center">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Menu -->
<div class="menu d-flex flex-column align-items-end justify-content-start text-right menu_mm trans_400">
<div class="menu_close_container"><div class="menu_close"><div></div><div></div></div></div>
<div class="search">
<form action="#" class="header_search_form menu_mm">
<input type="search" class="search_input menu_mm" placeholder="Search" required="required">
<button class="header_search_button d-flex flex-column align-items-center justify-content-center menu_mm">
<i class="fa fa-search menu_mm" aria-hidden="true"></i>
</button>
</form>
</div>
<nav class="menu_nav">
<ul class="menu_mm">
<li class="menu_mm"><a href="index.html">Home</a></li>
<li class="menu_mm"><a href="#">About</a></li>
<li class="menu_mm"><a href="#">Courses</a></li>
<li class="menu_mm"><a href="#">Blog</a></li>
<li class="menu_mm"><a href="#">Page</a></li>
<li class="menu_mm"><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
<!-- Home -->
<div class="home">
<div class="breadcrumbs_container">
<div class="container">
<div class="row">
<div class="col">
<div class="breadcrumbs">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="courses.html">Courses</a></li>
<li>Course Details</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Course -->
<div class="course">
<div class="container">
<div class="row">
<!-- Course -->
<div class="col-lg-12">
<div class="course_container">
<div class="course_title">C programming</div>
<div id="carouselExampleInterval" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<h3>What is C?</h3>
<p>C is a general-purpose programming language that has been around for nearly 50 years.
C has been used to write everything from operating systems (including Windows and many others) to complex programs like the Python interpreter, Git, Oracle database, and more.
The versatility of C is by design. It is a low-level language that relates closely to the way machines work while still being easy to learn.</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<h3>Data Types</h3>
<p>C supports the following basic data types:
int: integer, a whole number.
float: floating point, a number with a fractional part.
double: double-precision floating point value.
char: single character.
The amount of storage required for each of these types varies by platform.
C has a built-in sizeof operator that gives the memory requirements for a particular data type.</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<h3>Input and Output</h3>
<p>C supports a number of ways for taking user input.
getchar() Returns the value of the next single character input.
The input is stored in the variable a.
The gets() function is used to read input as an ordered sequence of characters, also called a string.
A string is stored in a char array.
Here we stored the input in an array of 100 characters.
scanf() scans input that matches format specifiers.
The & sign before the variable name is the address operator. It gives the address, or location in memory, of a variable. This is needed because scanf places an input value at a variable address
</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<h3>Comments</h3>
<p>Comments are explanatory information that you can include in a program to benefit the reader of your code. The compiler ignores comments, so they have no affect on a program.
A comment starts with a slash asterisk /* and ends with an asterisk slash */ and can be anywhere in your code.
Comments can be on the same line as a statement, or they can span several lines.
</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_quiz">
<h3>Quiz</h3>
<h4>What is the starting point for a C program?</h4>
<br>
<form>
<input type="radio" name="q1"> answer 1<br>
<input type="radio" name="q1"> answer 2<br>
<input type="radio" name="q1"> answer 3<br>
<input type="radio" name="q1"> answer 4<br>
</form>
<p>
<button type="button" class="btn btn-success"><a href="#carouselExampleInterval">Submit Answer</a></button>
</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<p id="congrats"></p>
<h3>Congratulations!....</h3>
</div>
</div>
//
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<h3>Loops - do while</h3>
<p>Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop in C programming checks its condition at the bottom of the loop.
A do...while loop is similar to a while loop, except the fact that it is guaranteed to execute at least one time.
The syntax of a do...while loop in C programming language is −
do {
statement(s);
} while( condition );
Notice that the conditional expression appears at the end of the loop, so the statement(s) in the loop executes once before the condition is tested.
If the condition is true, the flow of control jumps back up to do, and the statement(s) in the loop executes again. This process repeats until the given condition becomes false.
</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<h3>for loop</h3>
<p>The init step is executed first, and only once. This step allows you to declare and initialize any loop control variables. You are not required to put a statement here, as long as a semicolon appears.
Next, the condition is evaluated. If it is true, the body of the loop is executed. If it is false, the body of the loop does not execute and the flow of control jumps to the next statement just after the 'for' loop.
After the body of the 'for' loop executes, the flow of control jumps back up to the increment statement. This statement allows you to update any loop control variables. This statement can be left blank, as long as a semicolon appears after the condition.
The condition is now evaluated again. If it is true, the loop executes and the process repeats itself (body of loop, then increment step, and then again condition). After the condition becomes false, the 'for' loop terminates.</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_quiz">
<h3>Quiz</h3>
<h4>Which loop is guaranteed to execute at least one time?</h4>
<br>
<form>
<input type="radio" name="q1"> answer 1<br>
<input type="radio" name="q1"> answer 2<br>
<input type="radio" name="q1"> answer 3<br>
<input type="radio" name="q1"> answer 4<br>
</form>
<p>
<button type="button" class="btn btn-success"><a href="#carouselExampleInterval">Submit Answer</a></button>
</p>
</div>
</div>
<div class="carousel-item" data-interval="100000">
<img src="images/cont_Back.png" class="d-block w-100" alt="...">
<div class="new_text_cont">
<p id="congrats"></p>
<h3>Congratulations!....</h3>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleInterval" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleInterval" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer_background" style="background-image:url(images/footer_background.png)"></div>
<div class="container">
<div class="row footer_row">
<div class="col">
<div class="footer_content">
<div class="row">
<div class="col-lg-3 footer_col">
<!-- Footer About -->
<div class="footer_section footer_about">
<div class="footer_logo_container">
<a href="#">
<div class="footer_logo_text"><span>Athena</span></div>
</a>
</div>
<div class="footer_about_text">
<p></p>
</div>
<div class="footer_social">
<ul>
<li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
</div>
<div class="col-lg-3 footer_col">
<!-- Footer Contact -->
<div class="footer_section footer_contact">
<div class="footer_title">Contact Us</div>
<div class="footer_contact_info">
<ul>
<li>Email: [email protected]</li>
<li>Phone: 0114503628</li>
<li>44/8A, Malwatta Rd, Kanatta.</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-3 footer_col">
<!-- Footer links -->
<div class="footer_section footer_links">
<div class="footer_title">Contact Us</div>
<div class="footer_links_container">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="#">Features</a></li>
<li><a href="courses.html">Courses</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">FAQs</a></li>
</ul>
</div>
</div>
</div>
<div class="col-lg-3 footer_col clearfix">
<!-- Footer links -->
<div class="footer_section footer_mobile">
<div class="footer_title">Mobile</div>
<div class="footer_mobile_content">
<div class="footer_image"><a href="#"><img src="images/mobile_1.png" alt=""></a></div>
<div class="footer_image"><a href="#"><img src="images/mobile_2.png" alt=""></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row copyright_row">
<div class="col">
<div class="copyright d-flex flex-lg-row flex-column align-items-center justify-content-start">
<div class="cr_text">
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This web application <i class="fa fa-heart-o" aria-hidden="true"></i> by SAG4X</a></div>
</div>
</div>
</div>
</div>
</footer>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="styles/bootstrap4/popper.js"></script>
<script src="styles/bootstrap4/bootstrap.min.js"></script>
<script src="plugins/OwlCarousel2-2.2.1/owl.carousel.js"></script>
<script src="plugins/easing/easing.js"></script>
<script src="plugins/parallax-js-master/parallax.min.js"></script>
<script src="plugins/colorbox/jquery.colorbox-min.js"></script>
<script src="js/course.js"></script>
</body>
</html>