hhhhhhhhh cryptic horror, just wanted to show that it doesn't have to be so long.
Type: Posts; User: h_dog
hhhhhhhhh cryptic horror, just wanted to show that it doesn't have to be so long.
const int num_rows = 5;
it is better practice to use #define 5 N
printf("i*j\t", column);
printf("i*j\t", row *column);
I don't know what u expect this to do.
wow your code is very long, and not vary readable, here is what I would do:
int i;
for(i=0; i<25; i++){
printf(" %-1d*%-1d=%-2d %c", (i/5)+1, (i%5)+1, ((i/5)+1)*((i%5)+1),...
This is not the way to calculate e, first of all you will end up with 1/n and you don't need the loop. You must first write a function that calculates the factorial of x " fact(x) " and then change:...
thanks
Yes, of course any help is appreciated, although the java on my pc is not working properly so I am not sure whether it will work
but ye, thanks
My point is: if the reason for not using this method is because of what you said, then I am explaining to you that I am aware of that. And the only reason I used it is because this is a special case...
oh, that's no problem it is meant to work with positive integers < 100
thanks for answering so quickly. the wiki article is not so clear and it is hard to understand their pseudo code. In fact surprisingly, a Google search on the subject did not yield anything helpful,...
Hi. guys.
I am trying to implement shell sort which is, to my understanding, just a bubble sort with gaps. This is what I wrote :
int shellSort(int *arr, int n){
int i=0, j;
...