Computer Science, asked by eswarr2, 6 months ago

Write statement to accept float variable “Computer”

Answers

Answered by subhashkanna06
1

Answer:You can define a variable as a float and assign a value to it in a single declaration. For example: float age = 10.5; In this example, the variable named age would be defined as a float and assigned the value of 10.5.

Explanation:

Answered by mansisehga
1

Answer:

float a;

cout<<"Enter no:";

cin>>a;

cout<<"a:"<<a;

output:

Enter no:12.5

a:12.5

Explanation:

float is data type used to access integer decimal point number

Similar questions