Posts by Pedro Joao • 53 points
3 posts
-
1
votes2
answers305
viewsQ: Hide bombs in a minefield with ASCII 2
Using a two-dimensional matrix, create a program to implement a minefield game. To fill the matrix positions, use random numbers so that 0 represents a free position and 1 represents a pump. The…
casked Pedro Joao 53 -
2
votes2
answers255
viewsQ: Possibility challenge in c,c++ or Matlab
I’m in need of a program that gives me the possibilities of the following equation: x*y = 1700/57 Whereas x and y are positive reals resulting from two integers ("a" and "b") different from 1 to…
-
1
votes1
answer837
viewsQ: Print sequence of numbers repeating in arithmetic progression
Make a program to print: 1 2 2 3 3 3 ..... n n n n n n ... n for a user-informed n. Use a function that takes an integer n value and prints up to nth line. Why doesn’t it work? #include…
casked Pedro Joao 53