Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main () {
- float a, b, c;
- printf("Nhap vao 3 so a, b, c: ");
- scanf("%f%f%f", &a, &b, &c);
- if (a == 0) {
- if (c-b == 0) printf("Phuong trinh co vo so nghiem.\n");
- else printf("Phuong trinh vo nghiem\n");
- }
- else
- printf("Phuong trinh co mot nghiem duy nhat: %.2f\n", (float)(c-b)/a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement