Pages

Tuesday, January 8, 2013

Looping - Perulangan (5)

Create a program with C + + to display all of the settlement of the equation x + y + z = 20. With x, y, z integer> = 0.
Sample output display:
-----------------------------
x y z
-----------------------------
0 0 20
0 1 19
0 2 18 etc

=========================================================================
Buatlah program dengan C++ untuk menampilkan semua penyelesaian dari persamaan x + y + z = 20. Dengan x, y, z bilangan bulat >= 0.
Contoh tampilan outputnya:
-----------------------------
x y z
-----------------------------
0 0 20
0 1 19
0 2 18 dst

 
Script Program :


Screenshot :

Try It and Good Luck!!!

No comments:

Post a Comment