Week-04: Program-01
Due on 2024-08-22, 23:59 IST
Write a C Program to Find the Smallest Number among Three Numbers (integer values) using Nested IF-Else statement.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 20 30 10 | 10 is the smallest number. | 10 is the smallest number. | Passed |
Test Case 2 | 77 -44 99 | -44 is the smallest number. | -44 is the smallest number. | Passed |
Week-04: Program-02
Due on 2024-08-22, 23:59 IST
The length of three sides are taken as input. Write a C program to find whether a triangle can be formed or not. If not display “This Triangle is NOT possible.” If the triangle can be formed then check whether the triangle formed is equilateral, isosceles, scalene or a right-angled triangle. (If it is a right-angled triangle then only print Right-angle triangle do not print it as Scalene Triangle).
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 10 4 6 | Triangle is not possible | Triangle is not possible | Passed |
Test Case 2 | 7 6 8 | Scalene Triangle | Scalene Triangle | Passed |
Test Case 3 | 9 9 9 | Equilateral Triangle | Equilateral Triangle | Passed |
Week-04 Program-03
Due on 2024-08-22, 23:59 IST
Write a program to find the factorial of a given number using while loop.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 | The Factorial of 5 is : 120 | The Factorial of 5 is : 120 | Passed |
Test Case 2 | 10 | The Factorial of 10 is : 3628800 | The Factorial of 10 is : 3628800 | Passed |
Week-04: Program-04
Due on 2024-08-22, 23:59 IST
Write a C program to find power of a number using while loops. The base number (>0) and exponent (>=0) is taken from the test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5
4 | The result is : 625 | The result is : 625\n
| Passed after ignoring Presentation Error |
Test Case 2 | 7
3 | The result is : 343 | The result is : 343\n
| Passed after ignoring Presentation Error |