Search:

Type: Posts; User: arslan20

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    784

    Prime numbers....Help please

    I am new to c programming and need help. I have finally made program for prime numbers(with the help of internet) which works accurately. I only do not understand 1 thing. Here's my program
    ...
  2. Replies
    21
    Views
    3,432

    O. K friends, I have finally made program for...

    O. K friends, I have finally made program for prime numbers which works accurately (with the help of internet). I only do not understand 1 thing. Here's my program

    #include<stdio.h>...
  3. Replies
    21
    Views
    3,432

    But this program reports "1159" as prime and in...

    But this program reports "1159" as prime and in fact it's not a prime number...
  4. Replies
    21
    Views
    3,432

    I want that my program should check from 2 to...

    I want that my program should check from 2 to 9. It should divide entered number from 2 to 9 turn by turn and in any case if the remainder is zero the program must declare that number is not...
  5. Replies
    21
    Views
    3,432

    I want that my program should check from 2 to 9....

    I want that my program should check from 2 to 9. It should divide entered number from 2 to 9 turn by turn and in any case if the remainder is zero the program must declare that number is not prime....
  6. Replies
    21
    Views
    3,432

    but this program yields correct result for prime...

    but this program yields correct result for prime numbers greater than 10 and wrong for each number
  7. Replies
    21
    Views
    3,432

    Here is my rough program #include...

    Here is my rough program

    #include<stdio.h>
    #include<conio.h>
    int main(void)
    {
    int a,b,c,d,e,f,g,h,i;
    printf("Enter a number");
    scanf("%d",&a);
    b=a%2;
  8. Replies
    21
    Views
    3,432

    C program for prime numbers

    I am new in c programming. I want to make a program in which when I enter a number the program should tell me whether it is prime or not. I have found various programs on internet but they are all...
  9. Replies
    4
    Views
    4,856

    Right way

    Thanks grumpy: you explained it right way. You should be a teacher because of your method of explaining. well done!!:biggrin:
  10. Replies
    4
    Views
    4,856

    Great thanks

    Thank you Salem: It worked great for me. 110% helpful and true answer. But you know I am beginner in C language so i don't understand the reason. Although you mentioned it but my level is low. It...
  11. Replies
    4
    Views
    4,856

    C code for quadratic formula:

    Hi everybody. I made this code for quadratic formula but it's not working as it should. I am learning "C language" so it's very simple code.
    Important: It is working efficiently for "real and...
Results 1 to 11 of 11