#include<stdio.h> main() { int a,b,x; printf("\n Input a: "); scanf("%d",&a); printf("\n Input b: "); scanf("%d",&b); if (a=0) { if (b=0) printf("\nThe equation has unlimited result"); else printf("\nThe equation has no result"); getch(); } else { x=-b/a; printf("\nThe equation has only 1 result x= %d", x); getch(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)