- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 4
Re:
I just hit a brick wall. I'm writing a code that will ask a user the height of a pyramid an output the corresponding pyramid with * characters. I got that part working but now I need to turn it into a half pyramid like so: * ** *** **** … |
|
i have a problem with a program which gets a matrix[3][3] (with values 1-20.) i want to print the index of cells whose surrounding cells all have lower values. in a matrix 0 0 0 0 1 0 0 0 0 it supposed to print only [1][1]. can someone look … |
|
two static arrays size 10 need to be copied to an empty target array size 20. like this: you copy from the first array the nums till arr1[i] = 0 then you switch to the second array and copy to the nums till arr2[i] = 0. then you switch back, … |
|
Re:
below is one simplest code to illustare the pyramid of number. [CODE] void piramid(int const c) { int r, x; for (r = c; r > 0; r--) { for (x = 1; x < = (2 * c - r); x++) { if (x < r) printf(" "); else … |
|
[code=c] /*the program gots a string, and supposed to copy to the destination string every letter only once, and after a letter a num - a counter how many times a letter appeared in the original string for example - for kuku it should return k2u2 - but it returns … |
|
i got an exercise in which i've to write a code that does: when you enter the day of the month (f.e. 21th) and the day (f.e. Sunday) and the month (f.e. august) will display if in the given month there is a 13th Friday. so i made a prog. … |