Search:

Type: Posts; User: Kernelpanic

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    1,824

    No, "Lf" is for long double and I don't use long....

    No, "Lf" is for long double and I don't use long. For double is "lf" correct.



    #include <stdio.h>


    int main(void)
    {
    long double c = 42.0;
  2. Replies
    23
    Views
    1,824

    Of course, because your variable declaration...

    Of course, because your variable declaration doesn't make sense.

    circumference = diameter * pie; - is what?




    //Konfuse Deklaration - 5. Sept. 2020
    //Program to find area, circumference...
  3. Which trick?

    Which trick?
  4. Now is the arrangement of the alphabet really...

    Now is the arrangement of the alphabet really random. "srand" sets a random starting point for "rand" at every start.



    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include...
  5. That's another version. But it is always the same...

    That's another version. But it is always the same arrangement of the alphabet.



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

    #define MAT 10
  6. Thread: Fibonacci

    by Kernelpanic
    Replies
    2
    Views
    770

    The program run almost correct; "j" is redundant....

    The program run almost correct; "j" is redundant.



    int main(void)
    {
    int n; //i -> NO!

    printf("--- Fibonacci series program ---\n");
    printf("Enter a number:");
  7. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    1,208

    @laserlight - elegant solution! Clear and...

    @laserlight - elegant solution! Clear and straight. Unfortunately not from me. :frown:
    The search for an iterative solution was nonsense.

    Thank you!
  8. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    1,208

    I don't know whether the recursion ist part of...

    I don't know whether the recursion ist part of the exerice but whether the solution is recursiv or iterativ the solution have to start from the last calculation.

    15626

    I dont no whether this...
  9. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    1,208

    Look that: 15625 He have to start from the...

    Look that:
    15625


    He have to start from the end.
    That's a first try:



    #include <stdio.h>
  10. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    1,208

    See my correction - he have to start from the end.

    See my correction - he have to start from the end.
  11. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    1,208

    @laserlight - He have to start from the end. - I...

    @laserlight - He have to start from the end. - I will try it tomorrow.

    Have I say tomorrow? Today!



    1,2121...
  12. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    1,208

    @Igor, I know that is not the right solution, and...

    @Igor, I know that is not the right solution, and it is iterativ, but maybe a way there . . .
    It is an interesting task. - At until the solution: Take it easy!



    #include <stdio.h>
    #include...
  13. Replies
    24
    Views
    1,722

    I know the Linux(Unix)-philosophy since 1996; a...

    I know the Linux(Unix)-philosophy since 1996; a little bit. Windows was always my first system but Linux, SuSE-Linux, was a hobby from 1996 to 2010/2011. And more, I was a sponsor of Linux - I have...
  14. Replies
    24
    Views
    1,722

    You do exactly what I can not stand, you turn a...

    You do exactly what I can not stand, you turn a job into an ideology.

    Programming is also nothing more than building a scaffolding clean without it collapsing, or a mechanician who repairing a...
  15. Replies
    24
    Views
    1,722

    No, he is a human, not a new The Lord. He is only...

    No, he is a human, not a new The Lord. He is only a human and no one is without mistakes.
  16. Replies
    24
    Views
    1,722

    @Christop - No, No, No, the program from K&R is...

    @Christop - No, No, No, the program from K&R is not correct.

    A program has to terminated with a simple commando. Not with "String-D" or "String-C" or what ever. That's no correct!

    And this...
  17. Replies
    24
    Views
    1,722

    And this is my version: 15617 Also under...

    And this is my version:

    15617

    Also under Linux it works correct.
  18. Replies
    24
    Views
    1,722

    That's the same file in the Linux-World (Console...

    That's the same file in the Linux-World (Console Linux openSuSE 15 Leap):

    15616
  19. Replies
    24
    Views
    1,722

    Original code: #include ...

    Original code:



    #include <stdio.h>


    #define IN 1
    #define OUT 0
  20. Replies
    24
    Views
    1,722

    Small correction: do { c =...

    Small correction:



    do
    {
    c = getchar();
    char_number++;
    if (c == '\n')
    { new_line++; }
  21. Replies
    24
    Views
    1,722

    The K&R program run correct, almost . . . no...

    The K&R program run correct, almost . . . no termination condition. The gentlemen K&R don't like this. :rolleyes:


    Your code: For what "y"? In line 12: int c = 0; And "return(0);" is missing.
    ...
  22. Of course, there was only one screen under...

    Of course, there was only one screen under MS-DOS, but for example one could programming windows with the graphics library that came with QuickC 2.5 a little bit a la Windows. One could create a kind...
  23. Replies
    15
    Views
    1,419

    int main(void) . . . return(0); 15605

    int main(void)
    . . .
    return(0);


    15605
  24. Replies
    15
    Views
    1,419

    God damn, I'm getting another crisis! This little...

    God damn, I'm getting another crisis! This little program is full of pitfalls ... :tongue: Last version! The Lord is with me! ;)



    #include <stdio.h>
    #include <stdlib.h>


    void main(void)
    {
  25. Replies
    15
    Views
    1,419

    There was a (little) mistake when the input is...

    There was a (little) mistake when the input is over forty.



    #include <stdio.h>
    #include <stdlib.h>


    void main(void)
    {
Results 1 to 25 of 105
Page 1 of 5 1 2 3 4