Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main( ) {
- int a;
- int b;
- int c;
- scanf(" %d", a);
- scanf(" %d", b);
- scanf(" %d", c);
- if (a==0 && b==0)
- {
- if (a==0)
- {
- if (c==0)
- {
- int re;
- int d;
- int im;
- re=b/(2*a);
- d = b * b - (4 * a * c);
- im = abs(d) / (2 * a);
- if (d>0)
- {
- if (d<0)
- {
- int x1;
- int x2;
- x1 = re;
- x2 = x1;
- return 0;
- }
- else
- {
- return 0;
- }
- }
- }
- else
- {
- int x1;
- int x2;
- x1 = b / a;
- x2 = 0;
- pirntf = ("%d, x1");
- pirntf = ("%d, x2");
- return 0;
- }
- }
- else
- {
- int x;
- x = c / b;
- pirntf = ("%d, x");
- return 0;
- }
- }
- retur 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement