i'm done with the summation code.. anyway if possible can u copy my code and give explain it using the comment line on the program itself.. i wil be able to understand better(=
...
Type: Posts; User: pimp
i'm done with the summation code.. anyway if possible can u copy my code and give explain it using the comment line on the program itself.. i wil be able to understand better(=
...
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
int main()
{
int arrayofprimes[100];// create space for array
int top,remainder,numberofprimes,prime,i;
int...
the print out is the same .. however it still print out the remainder which i don want
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
int main()
{
int arrayofprimes[100];// create space for array
int top,remainder,numberofprimes,prime,i;
int...
can't work they print out the same output
i'm back. i try the code and it is able to give me prime number..however it was at the opp side
array[07] is 1
array[05] is 2
array[03] is 3
array[02] is 4
array[01] is 5 // this is the...
can't i use %02d to output a double digit out ? just a question.. i go try the code out and update .
adak i show u the code that i was expected to do so u will have a idea about my project.which i can actually ask u for more help(=
summation of prime number
===================
please enter top...
i manage to get prime number.. even though i change the 3 to 1 i still can't count number smaller than 4..
i show u the code that i have edit.it about the same as yours..u try and run it..
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
int main()
{
there is a part that i don't understand can explain more?
}while(--top > 3);
//print up the arrray of primes
for(i = 0; i < numberOfPrimes; i++)
print array of primes[i];...
i don understand. can u type the code out ?basically i'm stuck at converting into C from my logic
i saw some aid in there.. but i have a question. how do i stop processing if the remainder is =0.
i have the planning there but i some how can't get it into the program
ya. i know that part*
ya know the part that if the rem is not 0 it will not be a prime but i can't get that part and save it into a array.. that the part i'm stuck and lost
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
int main()
{
int numarray[100];// create space for array
int top,reminder,flag,value,prime;
int...
i know the way to find prime number but i can't get it into C programming..
i still can't get it work! omg
manv and adak thk for the guide.. i will figure it out and post it back..
adak can u help me with the code?
any suggestion?
how can i attach file?
cause the program itself is not just print prime number but there are more.
source 1
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
int main()
i understand what it's talking about..
however i can't get it into the programming code.
lol.. i'm a beginner..and i'm stuck for 4hrs! and i can't figure out what wrong !
i'm using Dev-C++
i looking at that link u give but i can't get anything from it..
anyway to help? like code for the program? i have to due the project in 2 days!
pls help
i'm a beginner using C.. i have a project on creating a souce that can detect prime number.
for example
if the user enter :10
they will print out all the prime nummber within 10
which mean it...