99.7k views
1 vote
Create a float variable named circumference.

1 Answer

2 votes

Answer:

Float circumference; // Create a float variable

Step-by-step explanation:

The float datatype is used for storing the decimal point values .The syntax to declaring any float variable is given below.

float variable-name;

float circumference; // create a float variable

circumference=89.9007;; // store the value in circumference

Following are program in c++

#include <iostream> // header file

using namespace std; //namespace

int main() // main function

{

float circumference; // creating variable float

circumference=89.9007; // storing value

cout<<circumference; // display value circumference

return 0;

}

Output:

89.9007

User Medphys
by
8.6k points