Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added outputs/basic_area_of_circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added outputs/basic_product_of_n_numbers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added outputs/basic_simple_interest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added outputs/user_defined_reverse_of_number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 18 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ For example, if the user enters 10, the program will output "Positive". If the
user enters -5, the program will output "Negative". And if the user enters 0,
the program will output "Zero".

*output*

![output of basic questions q1](outputs/basic_positive_negative.png)
---
_output_

## ![output of basic questions q1](outputs/basic_positive_negative.png)

### 2. WAP that reads the principal, rate of interest and number of years and find the simple interest and amount.

Expand Down Expand Up @@ -120,6 +118,10 @@ will output "The simple interest is: 100.00, and amount is 1100.00." This means
that the simple interest is 100.00 and the total amount after 2 years is
1100.00.

#### Output

![output_of_basic_simple_interest](outputs/basic_simple_interest.png)

### 3. WAP to read the radius of circle and display its area.

This is a C program to calculate the area of a circle. It takes the radius of
Expand All @@ -134,6 +136,10 @@ display the output up to 2 decimal places.

Finally, the program returns 0 indicating successful execution of the program.

#### Output

![output_of_basic_area_of_circle](outputs/basic_area_of_circle.png)

### 4. WAP that reads three numbers and displays the largest among them.

This is a C program that reads three integers from the user and then finds the
Expand Down Expand Up @@ -266,6 +272,10 @@ Here's how it works:

5. The main function returns 0, indicating successful execution.

#### Output

![output_of_basic_product_of_n_numbers](outputs/basic_product_of_n_numbers.png)

## Array Questions

### 1. WAP to input 10 numbers and display the largest and smallest number.
Expand Down Expand Up @@ -474,6 +484,10 @@ and outputs the returned value as the reversed number.
Overall, this program demonstrates the use of a function to perform a specific
task, in this case, reversing a given number.

#### Output

![output_of_user_defined_reverse_of_number](outputs/user_defined_reverse_of_number.png)

### 2. WAP to find the sum of 'n' integer numbers using the function.

This program calculates the sum of 'n' integer numbers, where 'n' is the input
Expand Down