Program in c++ to describe the probability of the moves


1) Write program to print the following stars in the screen.

*

**

****

********

****************

2) Suppose your $1,000 is earning interest at 4% per year. How many years you need to double your money? Write program to count the number of years.

3) In chess, the knight moves in a very special way: either: two squares forward and one to the side or: one square forward and two to the side.

Write a program in C++ to describe the Probability of the moves

1041_probability of moves.jpg

4) Suppose three dimensional array a [2][2][3]          

Initialized with the following a [row][col][dep] = row*col*dep;

Write program to calculate the summation of all even elements of the array.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Program in c++ to describe the probability of the moves
Reference No:- TGS049

Expected delivery within 24 Hours