Zeeshan 01 wrote:

Any one can print this

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

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

***** * *****

**** * * * ****

*** * ***

** * **

* *

I thought I'd give your new puzzle a go, but unlike with your original puzzle, a simple solution has me stumped this time because it seems to lack symmetry now that you've added that internal cross. It's trickier now...hence your change of the thread title from "Help in simple prob of loop" to "Complex Loop", I suppose.

Zeeshan 01 wrote:

Thanks for help but I need c language code

I still don't know c, nor the other two programming languages you mentioned (cpp and Java); but anyway, in case it helps someone, here's my effort in BASIC, based on my first solution to your original puzzle:

*EDIT: It's closer to the second solution, actually.*

```
a$="*******":c=7
WHILE c>0
IF c=7 THEN b$=" "
IF c=6 THEN b$=" * "
IF c=5 THEN b$=" * "
IF c=4 THEN b$=" * * * "
IF c=3 THEN b$=" * "
IF c=2 THEN b$=" * "
IF c=1 THEN b$=" "
PRINT RIGHT$(a$,c)+b$+RIGHT$(a$,c)
c=c-1
WEND
```

My program's output:

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

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

***** * *****

**** * * * ****

*** * ***

** * **

* *

Anyone still here?

]]>First, you try to answer the question, how do you do it if the string is empty. Then, you try to answer how to permute a string of length (n+1) if you knew how to permute a string of length n.

]]>You want to become proficient in c language then I suggest you 'Select My Tutor' where learners find many c language tutors of different locations. Find the relevant tutor for help.

Why are you posting to a thread that is 2 years old?

]]>Programs would begin with a recall. End with a joke. Variable declarations would read like "Notation: n in Integers". The program body would be divided into Lemmas and Theorems

]]>```
int x = 1; // regular integer
int[] y; // an integer array! it is still just an empty name...
y = new int[5]; // we put a fresh array length of length 5 to it. think of box with exactly 5 slots for ints.
y[0] = 11; // we can access the 5 slots with "index". indexes start from zero. (so 0,1,2,3 and 4 are valid).
y = new int[99]; // we erase the current array and create new one, as size cannot change in-between.
for(int i=0; i<y.length; i++){ y[i] = i+1; } // we put numbers 1-99 to the array.
try{ y[100] = 0; } // watch here, we access 101th slot in the array, which does not exist.
catch(IndexOutOfBoundsException){} // an error will be raised. be careful with this.
string[] z; // string array is as fine as any other...
myObject[] mo; // any obeject can form an array!
bool[,] b = new bool[10,10] // a fancy, two-dimensional array! it works like other arrays, but you must give two indexes to access "a slot".
bool[,,,] bbb = new bool[2,4,6,8]; // while this is legit, it may use lots of space.
int[][] ii = new int[5][]; // an array of array of ints! box, which contains boxes, which contain ints.
ii[0] = new int[4] // a new box to a box.
ii[0][0] // a number to box inside box.
```

arrays have also many useful built-in methods which you can search from the manual.

]]>You are welcome.

]]>A person I know wrote this

10 Print "My cats name is Minnie Mouse"

20 Goto 10

]]>There are at least 9 different definitions of empirical quantiles.

So both numpy and Mathematica etc are correct, depending on what definition the textbook is using.

Is 100 percentile possible? I think theoretically no

I would think that 100 percentile would mean the value that 100 percent of the data would be less than. But some definitions obviously include equal to also. I have seen many cases of 100 percentile computed and urge you to look at this answer:

http://math.stackexchange.com/questions … tile#33502

whuber, is an expert on statistics and he seems to indicate 100 percentile is allowed.

]]>