Search:

Type: Posts; User: phoenix.labs

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,054

    Oh.. That was silly. Thank You :) ...

    Oh.. That was silly. Thank You :)



    #include <stdio.h>

    main()
    {
    int i=1, n, p;
    printf("Enter n\n");
  2. Replies
    5
    Views
    1,054

    It's taken as input from the user - ...

    It's taken as input from the user -



    #include <stdio.h>

    /*to find factorial - considering user only enters +ve integers*/

    main()
    {
  3. Replies
    5
    Views
    1,054

    problem with very basic code

    This function wont work for a factorial function. Trying to figure out why.



    while(i<n)
    {
    n=n*i;
    i++;
    }
Results 1 to 3 of 3