Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Giai phuong trinh ax + b=0
- // Khai bao thu vien
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int a,b;
- scanf("%d%d",&a,&b);
- if(a==0)
- {
- if(b==0)
- {
- printf(" PT co nghiem tuy y");
- }
- else
- {
- printf("PT vo nghiem");
- }
- }
- else
- {
- printf("PT co nghiem duy nhat: %.2f", (float)-b/a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement