Advertisement
lukasd

zadanie 1 kolos 1

Jan 20th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. void kolos1()
  2. {
  3.     float a;
  4.     float b;
  5.     float x;
  6.     float y = 0;
  7.     scanf("%f", &a);
  8.     scanf("%f", &b);
  9.     x = (y - b) / a;
  10.     if (y == 0)
  11.     {
  12.         printf("%f", x);
  13.     }
  14.     else
  15.     {
  16.         printf("Brak miejsca zerowego");
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement