Week 8 : Programming Assignment 1
Due on 2023-09-21, 23:59 IST
Write a C Program to find HCF of 4 given numbers using recursive function
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 100
30
50
70 | The HCF is 10 | The HCF is 10 | Passed |
Test Case 2 | 49
56
147
21 | The HCF is 7 | The HCF is 7 | Passed |
Week 8 : Programming Assignment 2
Due on 2023-09-21, 23:59 IST
Write a C Program to find power of a given number using recursion. The number and the power to be calculated is taken from test case
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
2 | 5^2 is 25 | 5^2 is 25 | Passed |
Test Case 2 | 10
4 | 10^4 is 10000 | 10^4 is 10000 | Passed |
Week 8 : Programming Assignment 3
Due on 2023-09-21, 23:59 IST
Write a C Program to print Binary Equivalent of an Integer using Recursion
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 10 | The binary equivalent of 10 is 1010 | The binary equivalent of 10 is 1010\n
| Passed after ignoring Presentation Error |
Test Case 2 | 257 | The binary equivalent of 257 is 100000001 | The binary equivalent of 257 is 100000001\n
| Passed after ignoring Presentation Error |
Week 8 : Programming Assignment 4
Due on 2023-09-21, 23:59 IST
Write a C Program to reverse a given word using function. e.g. INDIA should be printed as AIDNI
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | computer | The string after reversing is: retupmoc | The string after reversing is: retupmoc | Passed |
Test Case 2 | NPTEL | The string after reversing is: LETPN | The string after reversing is: LETPN | Passed |
No comments