158k views
1 vote
Write C11 statements that accomplish the following. (6, 7) a. Declare int variables x and y. Initialize x to 25 and y to 18

User Suamikim
by
5.4k points

1 Answer

4 votes

Answer:

int x, y;

x = 25;

y = 18;

Step-by-step explanation:

Programming language: C++

This line declares both variables

int x, y;

This line initializes x to 25

x = 25;

This line initializes y to 18

y = 18;

User Mazatsushi
by
5.8k points