All pastes #135477 Raw Edit

linafroot

public cpp v1 · immutable
#135477 ·published 2006-08-17 00:09 UTC
rendered paste body
#include <stdio.h>#include <conio.h>bool q();char a[1];int main(){	printf("Is it uniform throughout? ");	if(!q()){		printf("Heterogeneous Mixture\n");		return 0;	}	printf("Does it have a variable composition? ");	if(q()){		printf("Homogeneous Mixture (Solution)\n");		return 0;	}			printf("Can it be separated into simpler substances? ");	if(q()){		printf("Compound\n");		return 0;	}	else{		printf("\nElement\n");		return 0;	}return 0;}bool q(){	a[0]=_getche();	printf("\n");	if(a[0]==121 || a[0] ==89 || a[0]==116 || a[0] == 84 ){		return true;	}	else{		return false;	}}