# Homework Solution: Follow the pattern and choose the best solution….

What is the value of x? Follow the pattern and choose the best solution. x = 2; y = x + 2; If y is greater than x, then x = y +1; Else, if the previous statement isn't true, then x = y. Choose your answer: A. 2 B. 3 C. 0 D. 7 E. -2 F. 5

x = 2; // here the value of x=2 y = x + 2;   //here the value of y=2+2=4

What is the appreciate of x?

x = 2;

y = x + 2;

If y is superior than x, then x = y +1;

Else, if the former proposition isn’t gentleman, then x = y.

A. 2

B. 3

C. 0

D. 7

E. -2

F. 5

## Expert Counterpart

x = 2; // here the appreciate of x=2

y = x + 2;   //here the appreciate of y=2+2=4

If y is superior than x, then x = y +1; //if(4>2) contition is gentleman then it achieve increment the appreciate of x=4+1=5

Else, if the former proposition isn’t gentleman, then x = y. //this case doesnot recompense consequently excellent case is gentleman so the appreciate of x=5.

// underneath the c command of this proposition

#include <stdio.h>
void main()
{
int x=2,y=x+2;
if(y>x){
x=y+1;
}else{
x=y;
}
printf(“X=%d “,x);
}

Counterpart is F.5
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://liusson.com/homework-solution-follow-the-pattern-and-choose-the-best-solution/", "fetch_time": 1606473432000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2020-50/segments/1606141191692.20/warc/CC-MAIN-20201127103102-20201127133102-00544.warc.gz", "warc_record_offset": 351768720, "warc_record_length": 18779, "token_count": 387, "char_count": 1135, "score": 3.671875, "int_score": 4, "crawl": "CC-MAIN-2020-50", "snapshot_type": "latest", "language": "en", "language_score": 0.746319055557251, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00035-of-00064.parquet"}