Joined March 2024
22 Photos and videos
Day 13/250 C language C Break and Continue- • Break- You have already seen the break statement used in an earlier chapter of this tutorial. It was used to "jump out" of a switch statement. The break statement can also be used to jump out of a loop.
1
25
This example jumps out of the for loop when i is equal to 8:
1
15
• Continue- This statement skips the rest of the loop statement and starts the next iteration of the loop to take place.
10
Day 12/250 C language • C For Loop- The for loop in C Language provides a functionality/feature to repeat a set of statements a defined number of times. The for loop is in itself a form of an entry-controlled loop.
1
16
HTML HTML Block elements- A block-level element always starts on a new line and stretches out to the left and right as far as it can, it occupies the whole horizontal space of its parent element & the height is equal to the content’s height. ex.-<div>, <p>, <h1> to <h6> etc.
1
5
HTML Inline elements- it is opposite of the block-level element. It does not start on a new line and takes up only the necessary width, it only occupies the space bounded by the tags defining the HTML element, instead of breaking the flow of the content. ex.- <span>, <a>, <em>.
5
Day 11/250 C language •C– Loops- These are used to repeat a block of code until the condition is met. this allows programmers to execute a statement or group of statements multiple times without repetition of code. They save time,reduce errors,and they make code more readable.
1
7
HTML- • The <div> Element- i. The <div> element is often used to group sections of a web page together. ii. The <div> element is by default a block element, meaning that it takes all available width, and comes with line breaks before and after.
1
3
iii. The <div> element has no required attributes, but style, class and id are common. iv. You can have many <div> containers on the same page.
3
Day 10/250 C language • Switch case statement- It evaluates a given expression and based on the evaluated value(matching a certain condition), it executes the statements associated with it. Basically, it is used to perform different actions based on different conditions(cases)
1
14
4. Each statement of the case can have a break statement. It is optional. 5. The default Statement is also optional. • The default Keyword - The default keyword specifies some code to run if there is no case match.
1
5
• The break Keyword - When C reaches a break keyword, it breaks out of the switch block. This will stop the execution of more code and case testing inside the block. When a match is found, and the job is done, it's time for a break. There is no need for more testing. #clanguage
5