No, the max length of the array that I can give is 256.
how can I generate all the primes with the first 24?
Type: Posts; User: megazord
No, the max length of the array that I can give is 256.
how can I generate all the primes with the first 24?
I tried to make some If's there
if (i%2==0)
findingprime(number,i,counter,j+1);
if(i%3==0)
findingprime(number,i,counter,j+1);
etc.. till 24 (I have sense why 24 but i forgot...
yes, thank you.
I read about it friday, i saw that what vast offer me is close to that implantaion (sqrt i).
I tried to make a funcation that ignor from wall the multiplaies of 2,3,5,7 etc..
but...
I'm searching a "return" for that, not yet founded.
I use that advise! thnx, it wat helpfull but, I still donwt get to 1000, get only 623.
I think I need another "if" there. i don't know...
what is the meaning of iteration?
anyway, the work restriction is to use no loops only recuration.
Hi all,
I wrote a code that finding the N'th prime number according to an index that given, for example: "Prime number #7 is 17."
my program working for very small index's, and I need it to...
I edit the program.
hello all,
I'm writhing a code with struct and I'm a littel bit confuse.
I get RUN TIME eroor and I don't why exactly.
the program Is fallin in the strcpy() int add studets and add course func....
I will ignore yours degrading "tone", and explain this line:
if some of the substring is ended I need to finish the recursion function, so this is my STOP SIGEN.
I'm not a good C progammer...
Someone? Plz help :\
I stayed all night trying to make it work! :\
but no luck.
if I enter substring "7778"
and 2nd substring "78", I get 0 and I need to get 2 (according to theirs program)....
This ass, is for practice recursion method.
so it's forbidden to use loops (for,while etc)
:D
I don't have it! :\
my program don't stad the:
"• Given i,j,k are the indices of 3 following matched letters, k-j =< 2 * (j-i)
o In other words- if the distance between 2 matched letters...
oh yhea!
I think I got it!
maybe someone will make me SQA :P
#include <stdio.h>
#define INPUT_LEN 256
int findWord(char arr[], char word[]);
I try'd somthing...
but i you can see that it's not working very well 'cuse I'm running in the same time on both substring...
#include <stdio.h>
#define INPUT_LEN 256
int findWord(char...
I have a second Q.
this time I wroth somthing, and it's working!
but again :( I can't reach the reqeirment:
"you are not allowed to change array; you are not allowed to use more than 1 additional...
if it's a joke, i did'nt understand that :\
I can't use pointers (*p,null etc).
opps..
here I compiled my code..
insted of printf i need to put if somewhere, I don't know where :/
#include <stdio.h>
#define INPUT_LEN 256
here is my code for what you ask, did I did it ok?
int findWord(char arr[], char word[]){
checkArray(char arr[],int length);
checkArray(char arr[],int length);
}
void...
oh that was fast, thnx.
yes I have a restrictions to not use any loops (for,while) and no libery func except of printf, scanf and gets.
and I don't know how to overpass this restriction...
Hi all,
I have and ass, and I can't reach the reqeirment:
"you are not allowed to change array; you are not allowed to use more than 2 additional (helper) functions(recursive and no recursive)...
I fixed my program for the length and for more uniqe variables,
and add some notes.
maybe if I will specify my problems, you can help me more:
1. On part 1, can I unite some of the checks?...
Thanks!
yhea :( 20 ........ing indentation :( it's to long, I'm sure that there is a way to make all programs be shorter even junt using main()
but we start making progs wirh functions only in...
Adak and all, i finish my code, you can see that it's a monster code!
adak I need to redeem your promise "*don't* want to do your assignment for you, we want to *help* you, do your assignment.".....
what can I do, this my proffesor rules. :(
yeha, it's a big program, I'm seraching for a way to make her efficient, I'm lokking for 4 directions so I need 4 loops.
'cuse the first one ended so...
first of all, Adak and all thank you for the time and understanding:)
Adak, no functions are allowed.
this is my program, the first prog let the user to insert 8 coordinate in the borad, and then...