Write statement to accept float variable “Computer”
Answers
Answered by
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
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
Math,
3 months ago
Math,
3 months ago
Chemistry,
6 months ago
Business Studies,
6 months ago
English,
11 months ago