Adak, if "exit" is entered I only want it to end, without printing everything in the while loop.
Type: Posts; User: chelpplease
Adak, if "exit" is entered I only want it to end, without printing everything in the while loop.
Thank you, anduril.
The strcmp but the only problem I still have is it is still printing everything inside the while loop before it exits.
yes i just need it to end when "exit" is entered. I have something seperate for invalid sequences. i just dont understand why my "&&" is working more as an OR operator than an AND operator. only one...
int main(void){
char arrayDna[MAXSIZE];
while(arrayDna[0] != 'e' && arrayDna[1] != 'x' && arrayDna[2] != 'i' && arrayDna[3] != 't'){
printf("Enter a DNA sequence consisting of A's,...
#include <stdio.h>
#include <string.h>
#define MAXSIZE 255
void arrayRev(char arrayDna[]);
int main(void){
char arrayDna[MAXSIZE];
while((arrayDna[0] != 'e') && (arrayDna[1] != 'x') &&...