Search:

Type: Posts; User: Bubbles293

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    4,263

    Did it on my own yeah haha thanks everyone for...

    Did it on my own yeah haha thanks everyone for the help
  2. Replies
    28
    Views
    4,263

    Ok it works now the only bit i need help with now...

    Ok it works now the only bit i need help with now is the distinct positve factors part any ideas?
  3. Replies
    28
    Views
    4,263

    It wont happen

    It wont happen
  4. Replies
    28
    Views
    4,263

    Ok the program i posted works the only thing is...

    Ok the program i posted works the only thing is that when the number is prime it does not say the number is prime so that print must be in the wrong place so is it a problum with my brackets?
  5. Replies
    28
    Views
    4,263

    #include #include int...

    #include<stdio.h>
    #include<math.h>
    int main(void){
    int n,i,a;
    printf("enter the number");
    scanf("%d",&n);
    for(i=2;i<n;i++)
    {
    ...
  6. Replies
    28
    Views
    4,263

    #include #include int...

    #include<stdio.h>
    #include<math.h>
    int main(void){
    int n,i,a;
    printf("enter the number");
    scanf("%d",&n);
    for(i=2;i<n;i++)
    {
    a=n%i;
    if(a==0)
  7. Replies
    28
    Views
    4,263

    should it be a while loop

    should it be a while loop
  8. Replies
    28
    Views
    4,263

    for(i=2;i

    for(i=2;i<=n;i++)
    is it to do with this line
  9. Replies
    28
    Views
    4,263

    Crap do u no what is wrong wit the code?

    Crap do u no what is wrong wit the code?
  10. Replies
    28
    Views
    4,263

    Hi i ran the code again and it does the is it...

    Hi i ran the code again and it does the is it prime or is it not why do you think it does not do what i think it does i am confused
  11. Replies
    28
    Views
    4,263

    distinct positive factors

    #include<stdio.h>
    #include<math.h>

    int main(void)
    {
    int n, i, a;
    printf("enter the number");
    scanf("%d", &n);
    for (i = 2; i <=n; i++)
    {
  12. Thread: Matrix

    by Bubbles293
    Replies
    3
    Views
    1,429

    Matrix

    In C i am using dev C++ so far i have read in the matrx A

    #include<stdio.h>
    #define DIM 4
    int main(void){
    double A[DIM][DIM];
    int i, j;

    /*read in the matrix*/
    for(i=0; i<DIM; i++){
  13. Thread: Matrix

    by Bubbles293
    Replies
    3
    Views
    1,429

    Matrix

    Hi can anyone help i have to write a program in c that reads in a 4x4 matrix A checks if all the entries are positive and if each row is less than one then get the program to print out the value of...
Results 1 to 13 of 14