212k views
5 votes
Given an integer variable count, write a statement that displays the value of count on the screen. Do not display anything else on the screen -- just the value of count.

User LaBUBU
by
6.1k points

1 Answer

3 votes

Answer:

cout<<count;

Explanation:

The above statement is in c++ which display the value of count .The cout statement is used in c++ to print the value on console .

Following are the code in c++

#include <iostream> // header file

using namespace std; // namespace

int main() // main method

{

int count=90; // count variable

cout<<count; // display the value of count

return 0;

}

Output:

90

In this program we have declared a count variable of integer type which is initialized by 90 and finally displays the value of count on the screen.

User Mike Van Dyke
by
5.6k points