Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hey leute

ich muss diese Aufgaben machen aber ich weiss es nicht, wie ich machen soll

:(

Aufgaben:

post-49381-14430447879735_thumb.jpg

dann fang mal an, und meld dich, wenn du an einer bestimmten stelle garnicht weiterkommst mit einer konkreten frage wieder.

1. Aufgabe ist erledigt.

2. Aufgabe :

#include <stdio.h>

#include <stdlib.h>

#include <math.h>


int main(void)

{   

    printf("Loesen einer quadratischen Gleichung\n\n");

    printf("a^2 + bx + c = 0\n\n");


    float a,b,c;


    printf("Geben Sie a ein: ");

    scanf("%f",&a);

    printf("Geben Sie b ein: ");

    scanf("%f",&;

    printf("Geben Sie c ein: ");

    scanf("%f",&c);


    if (a==0)

        if (b==0)

            if (c==0)

                printf("Alle x sind Loesungen\n");

            else

                printf("es gibt keine Loesung\n");

        else

            printf("Die einzige Loesung ist: x1 = %f\n", -c/b);

    else

    {

        float diskriminante = b*b - 4*a*c;

        if (diskriminante < 0)

            printf("Es gibt keine reelle Loesung!\n");

        else

            if (diskriminante == 0)

                printf("Doppelte Loesung x1/x2 = %f\n",-b/(2*a));

            else

            {

                float x1 = -b + sqrt(diskriminante)/(2*a);

                float x2 = -b - sqrt(diskriminante)/(2*a);

                printf("Zwei Loesungen: x1=%f, x2=%f\n",x1,x2);

            }

    }


    system("pause");

    return 0;

} [/code]

[b][color=Red][size=3]Aber ich kann nicht 3. Aufgabe :([/size][/color][/b]

2. Aufgabe :

Das hast du schön abgeschrieben. Bist du noch nicht auf die Idee gekommen, dass der Sinn dieser Aufgabe ist, dass du das selbst machst?

Aber ich kann nicht 3. Aufgabe :(
Mit einer etwas konkreteren Problembeschreibung als "ich kann nicht" kommst du hier viel weiter.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.