49.3k views
4 votes
What statement would you use to assign the value 32 to the variable cheeses?

User Becuzz
by
5.9k points

1 Answer

2 votes

Answer:

Statement to assign 32 to variable cheeses.

cheeses=32;

Step-by-step explanation:

To assign any value to a variable in any programming language, we use "="operator.First declare a variable "cheeses"of type "int" in this case.Then assign 32 to variable "cheeses" with the help of "=" operator.After assigning 32 , variable will store 32 in it.

Implementation in c++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

int cheeses;

cheeses=32;

return 0;

}

User Rigotre
by
5.1k points