forked from AdarshAddee/Hacktoberfest2022_for_Beginers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AdarshAddee#239 from fikriks/main
update: contributor 🚀
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// fikriks | ||
|
||
#include<stdio.h> | ||
|
||
using namespace std; | ||
|
||
int main() | ||
{ | ||
int pecahan_pembilang1, pecahan_penyebut1, pecahan_pembilang2, pecahan_penyebut2; | ||
float hasil1, hasil2; | ||
|
||
printf("%s\n", "Membandingkan Dua Bilangan Pecahan"); | ||
printf("Masukan Bilangan Pecahan Ke-1 (Format Input = 1/2) = "); | ||
scanf("%i/%i", &pecahan_pembilang1, &pecahan_penyebut1); | ||
|
||
printf("Masukan Bilangan Pecahan Ke-2 (Format Input = 1/2) = "); | ||
scanf("%i/%i", &pecahan_pembilang2, &pecahan_penyebut2); | ||
|
||
hasil1 = (float) pecahan_pembilang1 / pecahan_penyebut1; | ||
hasil2 = (float) pecahan_pembilang2 / pecahan_penyebut2; | ||
|
||
if(hasil1 == hasil2){ | ||
printf("Pecahan Ke-1 (%i/%i) Sama Dengan Pecahan Ke-2 (%i/%i)", pecahan_pembilang1, pecahan_penyebut1, pecahan_pembilang2, pecahan_penyebut2); | ||
}else if(hasil1 < hasil2){ | ||
printf("Pecahan Ke-1 (%i/%i) Lebih Kecil Dari Pecahan Ke-2 (%i/%i)", pecahan_pembilang1, pecahan_penyebut1, pecahan_pembilang2, pecahan_penyebut2); | ||
}else if(hasil1 > hasil2){ | ||
printf("Pecahan Ke-1 (%i/%i) Lebih Besar Dari Pecahan Ke-2 (%i/%i)", pecahan_pembilang1, pecahan_penyebut1, pecahan_pembilang2, pecahan_penyebut2); | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,10 @@ | |
|
||
# Message | ||
<p>Enter your Name, Github Link & Your E-Mail Address in the given format. Don't try to change anything else!!!</p> | ||
<code>| Name | Github Link | E-Mail Address |</code> | ||
<code>| Name | Github Link | E-Mail Address |</code> | ||
|
||
# List of Contributors | ||
|
||
<p>[*] Make sure you have updated your Name, Github link & E-Mail Id (enter your e-mail just after mailto:)!!!</p> | ||
<br> | ||
|
||
|
@@ -44,6 +45,10 @@ | |
| Daksh Kesarwani | <a href="https://github.com/InnocentDaksh63">Daksh kesaarwani</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Pradeep Khatri | <a href="https://github.com/PradeepKhatri">Pradeep Khatri</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Apurva Dubey | <a href="https://github.com/umbridge">umbridge</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Daksh Kesarwani | <a href="https://github.com/InnocentDaksh63">Daksh kesaarwani</a> | <a href="mailto:;[email protected]">E-Mail</a> | | ||
| Fikri Khairul Shaleh | <a href="https://github.com/fikriks">Fikri Khairul Shaleh</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Shivam Jaiswal | <a href="https://github.com/Shivaminc">Shivam Jaiswal</a> | <a href="mailto:[email protected]">E-mail</a> | | ||
| Ashish Kushwaha | <a href="https://github.com/AshishKingdom">Ashish Kushwaha</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Daksh Kesarwani | <a href="https://github.com/InnocentDaksh63">Daksh kesaarwani</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Chirag Chandnani | <a href="https://github.com/chiragchandnani10">Chirag Chandnani</a> | <a href="mailto:[email protected]">E-Mail</a> | | ||
| Shivam Jaiswal | <a href="https://github.com/Shivaminc">Shivam Jaiswal</a> | <a href="mailto:[email protected]">E-mail</a> | | ||
|
@@ -75,7 +80,6 @@ | |
|
||
|
||
|
||
|
||
|
||
|
||
<br> | ||
|