Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cb0b257

Browse files
Merge pull request #12 from gauravfs-14/master
[added]: Added Outputs to some questions
2 parents c67f888 + c37216a commit cb0b257

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

‎outputs/basic_area_of_circle.png‎

13.6 KB
Loading[フレーム]
16.9 KB
Loading[フレーム]

‎outputs/basic_simple_interest.png‎

16.1 KB
Loading[フレーム]
15.4 KB
Loading[フレーム]

‎readme.md‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ For example, if the user enters 10, the program will output "Positive". If the
8383
user enters -5, the program will output "Negative". And if the user enters 0,
8484
the program will output "Zero".
8585

86-
*output*
87-
88-
![output of basic questions q1](outputs/basic_positive_negative.png)
89-
---
86+
_output_
9087

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

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

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

121+
#### Output
122+
123+
![output_of_basic_simple_interest](outputs/basic_simple_interest.png)
124+
123125
### 3. WAP to read the radius of circle and display its area.
124126

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

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

139+
#### Output
140+
141+
![output_of_basic_area_of_circle](outputs/basic_area_of_circle.png)
142+
137143
### 4. WAP that reads three numbers and displays the largest among them.
138144

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

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

275+
#### Output
276+
277+
![output_of_basic_product_of_n_numbers](outputs/basic_product_of_n_numbers.png)
278+
269279
## Array Questions
270280

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

487+
#### Output
488+
489+
![output_of_user_defined_reverse_of_number](outputs/user_defined_reverse_of_number.png)
490+
477491
### 2. WAP to find the sum of 'n' integer numbers using the function.
478492

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /