Week 8 : Programming Assignment 1
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-08 Program-02
Due on 2024-03-21, 23:59 ISTWrite 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
Passed
Test Case 2 257
The binary equivalent of 257 is 100000001
The binary equivalent of 257 is 100000001
Passed
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 | Passed |
Test Case 2 | 257 | The binary equivalent of 257 is 100000001 | The binary equivalent of 257 is 100000001 | Passed |
Week-08 Program-03
Due on 2024-03-21, 23:59 ISTWrite 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
Write a C Program to reverse a given word using function.
e.g. INDIA should be printed as AIDNI
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 |
Week 08: Program-04
Due on 2024-03-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 |
No comments