-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d7994f
commit 1f1ad33
Showing
6 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# C Class 4 | ||
|
||
## Class recording: [Here](https://drive.google.com/file/d/1lkecY1mCdsprEkdE5mJNpRUkZAetPmny/view?usp=sharing) | ||
## PPT: [Here](CC_FirstYe_Class4.pdf) | ||
|
||
January 30th, 2022 | ||
|
||
<div align="center"><img src="../C_logo.png" alt="C language logo" height=150/></div> | ||
|
||
<hr> | ||
|
||
## Tasks | ||
|
||
### Offline | ||
|
||
#### Switch-case | ||
|
||
0. First finish [last day's tasks](../2022_01_29_CClass-3/README.md#Tasks). | ||
1. WAP to accept a number from 1 to 7 and display the corresponding day of the week. | ||
2. WAP to accept two numbers and a operator (+, -, *, /) from user and perform the operation on the two numbers as per the operator entered and display the result. | ||
3. Write a menu driven program to accept a choice from user and as per the choice perform the following operations: | ||
- Area of a circle | ||
- Area of a rectangle | ||
- Area of a triangle (Heron's formula) | ||
- Volume of a sphere | ||
- Exit | ||
4. WAP to acept an alphabet from user and display whether it is a vowel or consonant. | ||
|
||
#### Loops | ||
|
||
1. WAP to display all **even** numbers from 1 to 100. | ||
2. WAP to display all **odd** numbers between two number entered by user. | ||
3. WAP to accept a number from user and display the **factorial** of that number. | ||
4. WAP to accept a number frm user and display it's **multiplication table**. | ||
5. WAP to accept a number from user and display the **number of digits** in that number. | ||
6. WAP to accept a number from user and display the **sum of digits** in that number. | ||
7. WAP to accept a number from user and display the **product of digits** in that number. | ||
8. WAP to accept a number from user and display the **reverse** of that number. | ||
9. WAP to accept a number from user and display whether it is a **palindrome** or not. | ||
10. WAP to accept a number from user and display whether it is a **prime number** or not. | ||
11. WAP to display all **prime numbers** between 1 to 100. | ||
12. WAP to accept two numbers from user and display the **greatest common divisor (GCD)** (or the highest common factor (HCF)) of those two numbers. | ||
13. WAP to accept two numbers from user and display the **lowest common multiple (LCM)** of those two numbers. | ||
|
||
### HackerRank: | ||
|
||
1. [For Loop in C](https://www.hackerrank.com/challenges/for-loop-in-c/problem?isFullScreen=true) | ||
2. [Sum of Digits of a Five Digit Number](https://www.hackerrank.com/challenges/sum-of-digits-of-a-five-digit-number/problem?isFullScreen=true) | ||
4. **Read and do [Bitwise Operators](https://www.hackerrank.com/challenges/bitwise-operators-in-c/problem?isFullScreen=true)**. | ||
|
||
### Quizzes | ||
|
||
1. [If Else Statement Quiz in C](https://www.knowprogram.com/c-quiz/if-else-statement-quiz-c/) | ||
2. [Quiz on Increment and Decrement Operators in C](https://www.knowprogram.com/c-quiz/increment-decrement-quiz-c/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters