Site hosted by Angelfire.com: Build your free website today!









#include <stdio.h>

main()
{


    float calculator(float);

    float A = 0.0000;
    float x = 0.0000;

    printf("\n\ngive me the A value please! : ");
    scanf("%f", &A);

    x = calculator(A);

    printf("\n\nThe value that satisfies f(x)=0 is %.4f !!! MUA HA HA HA\n\n", x);


}

float calculator(float inputA)
{

    float comparevalue = 0.0001;
    float returnvalue = 0.0000;

    while(comparevalue*comparevalue<inputA)
    {
        comparevalue = comparevalue + 0.1;
    }

    comparevalue = comparevalue - 0.1;

    while(comparevalue*comparevalue<inputA)
    {
        comparevalue = comparevalue+0.01;
    }

    comparevalue = comparevalue - 0.01;

    while(comparevalue*comparevalue<inputA)
    {
        comparevalue = comparevalue+0.001;
    }

    comparevalue = comparevalue - 0.001;

    while(comparevalue*comparevalue<inputA)
    {
        comparevalue = comparevalue+0.0001;
    }

    comparevalue = comparevalue - 0.0001;

    return comparevalue;

}





#include <stdio.h>

//The following is the function Prototype...
//double productfunc(double sum); is not necessary.
//double productfunc(double); is better.
//type functionname(type); is better.
double productfunc(double);


//here I declared the variable counter outside of main()
//because the variable counter will also be used outside of
//in the function productfunc()
double counter = 1.0;


main()
{
    //the variable product can be declared within main()
    //because the variable product can be passed into the function productfunc();
    double product = 1.0;

    //a function can return a value.
    //our function, productfunc() can return a double value
    //lets create a variable that will store the returned value
    //lets call it output
    //make sure the variable type is same as the return type of the function
    //productfunc() returns a double value
    //
    //double productfunc(double productinside)
    //
    //therefore the variable that will store the return of productfunc() must also be function

    double output = 0.0;


    output = productfunc(product);
    printf("The product of the numbers from 1 to 100 is %lf", output);
}


//we can use the variable counter because it is outside the main()
//notice counter is used in while(counter<101.0)?
//we cannot use the variable product within productfunc()
//because it is declared within main()
//and therefore is not known in functions outside of main()

double productfunc(double productinside)
{
        while(counter<101.0)
        {

            productinside = productinside * counter;
            counter = counter + 1.0;
        }


        //we use return statement...
        //the value in productinside will be stored in output
        return productinside;
}




//The following is incomplete and misunderstood.....




#include <stdio.h>



int input = 0;
int i = 0;
int j = 0;
int nextrow = 0;
char ready = ' ';

//int inputinside = 0;

void damngetinput(int);

main()
{
    printf("\n\nhey there, this is the darn Gaussian Elimination Program...!!!");
    printf("\n\n");
    printf("type in how many rows and columns will be there in the program!");
    printf("\n\n");
    scanf("%d", &input);

    damngetinput(input);

}


void damngetinput(int inputinside)
{
    int elements = inputinside*inputinside;

    int muahaha[elements];

    int answer[inputinside];

    printf("\n\nYou requested to create a matrix of %d rows and %d columns", inputinside, inputinside);
    printf("\n\n");
    printf("now,");
    for(i = 0; i < elements ; i ++)
    {

        printf("\n\n give me the elements, and press enter after each element");
        printf("\n\n");
        scanf("%d", &muahaha[i]);
        printf("\n\n");

    }

    printf("you made the following matrix with %d rows and %d columns,", inputinside, inputinside);
    printf("\n\n");


    for(i = 0; i < elements ; i++)
    {

        printf("%d ", muahaha[i]);
        nextrow++;
        if(nextrow == inputinside)
        {
            nextrow = 0;
            printf("\n\n");
        }

    }

    printf("\n\n");
    printf("<<<  Gaussian Operation  >>>");
    printf("\n\n");

    j = 0;
    answer[j] = 0;
    nextrow = 0;


    for(i = 0; i < elements; i ++)
        {

        nextrow ++;
        answer[j] = answer[j] + muahaha[i]*nextrow;

        if(nextrow == inputinside)
            {
                printf("%d\n", answer[j]);
                nextrow = 0;
                j ++ ;
                answer[j] = 0;

            }

        }


}
















Acoustica

Licensed User

AC220-66893

G483B 96Y98 FKFKQ W2F26 2KHMQ


TextPad 4.5.0 registration code

BEGIN LICENSE
Educational purposes
Jja Sik
73 9999FCPELHPRSUNGSFGYIPJ
8481b2ae 8d0003ed f20fa138 fa50e200 e61ebc5a 6d101a74
e408696c 0f76fd0c 987becdd 4024c975 2a2eeb6e 862fb64f
3767b3aa 1c8fc0ef d46d26b1 376f86e4 6897c54d 3292db3a
6376673e c3bc98d1 abe4bc0b 288da422 53fb6f63 8912f884
END LICENSE

Current version of S u S E Linux is: 8.1

8.1 overview 6

S u S E Linux Enterprise Server S/390 300

S u S E Linux 6.4 documentation 534

installation, networking, and know how 7.1 518

ibiblio.org

would it be the best? it is HOWTOS from S u S E


7.3 System and Reference Manual 363


Text Terminal How To 379 KB




soribada
musashi100
iddqd


Debian GNU/Linux