ให้นักเรียนเขียนโปรแกรมพร้อมประกาศตัวแปรสำหรับข้อมูลชนิดเศษส่วน เป็นฟังก์ชั่น 2 ฟังก์ชั่น แล้วคำนวณและผลมอดูลัสของตัวแปรทั้งสอง ให้จำนวนเต็มทั้งสองที่รับเข้ามาเลขอะไรก็ได้ ตามลำดับ จัดรูปแบบผลลัพธ์ให้สวยงาม
ตัวอย่างรูปแบบของผลลัพธ์
First fraction:
Enter the numerator: ??
Enter the denominator:??
Second fraction:
Enter the numerator: ??
Enter the denominator:??
Answer: ?? / ?? + ?? / ?? = ?? / ??
ช่วยทีครับ c++ ผมจะส่งครู พน
Moderators: mindphp, ผู้ดูแลกระดาน
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 2670 Views
-
Last post by touleg
02/04/2012 3:10 pm
-
- 2 Replies
- 1002 Views
-
Last post by Freedomz
24/05/2011 1:14 pm
-
- 7 Replies
- 3268 Views
-
Last post by hosting-th
21/01/2012 9:30 pm
-
-
ช่วยทีครับ ทำมาหลายชั่วโมงแล้ว งงมากครับ
by ir2 » 08/02/2012 9:57 pm » in Programming - C/C++ & java & Python - 2 Replies
- 2183 Views
-
Last post by onzevil12
13/02/2012 3:51 pm
-
-
- 2 Replies
- 1200 Views
-
Last post by dexjanghan
24/07/2011 12:41 am
-
-
โปรแกรมตอบคำถาม อัติโนมัติ ช่วยทีครับ
by nutyoyomvp » 01/03/2012 8:36 pm » in Programming - C/C++ & java & Python - 3 Replies
- 3706 Views
-
Last post by Netnapa naja
23/05/2016 9:26 pm
-
-
- 4 Replies
- 2407 Views
-
Last post by HurricaneCyber
27/08/2012 6:11 pm
-
- 0 Replies
- 1291 Views
-
Last post by tonman
19/04/2014 11:35 pm
Who is online
Users browsing this forum: No registered users and 11 guests