Editing my c code for this question 4 Write a C program name

Editing my c code for this question

4) Write a C program named a4q4.c which reads the standard input and extract HTML-style tags from it. We consider that the HTML-style tags are all strings starting with character “less-than” (<) and end with the character “greater-than” (>). In case that there is a tag starting with ‘<’ but not finishing with ‘>’ at all, then print it all the way to the end of input. Each tag should start at a new line. Input The input is in a free textual form. Output The output consists of a list of tags in the order that they appear in text. Each tag should start on a new line. All content of a tag should be printed in the same way as it appears in input. If a tag is not finished, it should still be printed. The sample input and output below illustrate behaviour of the program. Hint : The program should read input character by character and immediatelly produce output or not based on the context.

The code is :

The out put for this code is mixing beteween the string and html tags. Please help me as soon as possible.

Solution

#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;
#include&lt;stdlib.h&gt;
void main()
  
if(a[i]&gt;0)
  

if(d[i]&gt;0)
printf(\" + \");
else if(d[i]&lt;0)
printf(\" - \");
else
printf(\" \");
printf(\"%dx^%d\",d[i],i-1);
}
getch();
}
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

typedef struct polynomial Polynomial;

void init_poly(Polynomial *p)

void print_poly(Polynomial *p)
p-&gt;coefficient[p-&gt;order--] = 0;
}

void r_print_differential_poly(Polynomial *p)
}

int main(void)

Editing my c code for this question 4) Write a C program named a4q4.c which reads the standard input and extract HTML-style tags from it. We consider that the H

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site