// Write Java Code to print pattern as below (formatting / indentation is not important) // It should print number of rows as per our input. // Suppose I am giving rows=5,then it should print 5 rows as mentioned below. //
// // 1
// -1 -1 // 1 2 1 // -1 -3 -3 -1 // 1 4 6 4 1 // // The pattern is that each number is the sum of the two numbers above (left & right) * -1 // For example, 4 = ( -1 + -1 ) * -1
mardi 13 juin 2017
Can someone help me to crete this pattern quickly as i am in precticle test [on hold]
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire