current position:Home>Why can the bottom area be calculated, but the volume has no value
Why can the bottom area be calculated, but the volume has no value
2022-02-04 16:58:41 【CSDN Q & A】
Meng Xinqiu belt doesn't know why it's wrong
Attach code
#include<stdio.h>
int main()
{
float PI=3.14159;
float r,h,S,V;
printf("Please input r,h:");
scanf("%f,%f",&r,&h);
S=PIrr;
V=PIrr*h;
printf(" Bottom area =%f\t Cylinder volume =%f\n",S,V);
return 0;
}
Typed 5 and 6, The bottom area is correct, but the volume is always 0.
Please give me some advice
Take the answer :
You put h Output the value of , It should be your wrong input .
Input r and h when , Separate them with commas .
Such as :5,6
Other answers 2:
Did you put a space in the middle of your input
Other answers 3:
You first print see h How much is it , Is it right? 0
When you ask for input r and h Separated by commas , So when you input, do you input according to the format
copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041658398449.html
The sidebar is recommended
- What are the instructions for configuring the processing mode of the target existing tables that DTS self built MySQL synchronizes to RDS MySQL?
- What is the core program running mechanism of MapReduce?
- What is the core competence of Alibaba cloud log service?
- What are the types of MySQL indexes?
- What is the description of the configuration of synchronization objects from DTS self built Mysql to RDS MySQL?
- What is the function of clusteringkey?
- What should I pay attention to when starting and using ECS?
- What is the description of the configuration of the mapping name change of DTS self built MySQL synchronized to RDS MySQL?
- What are the principles for creating indexes in MySQL?
- What is the description of the configuration of filtering data to be synchronized from DTS self built Mysql to RDS MySQL?
guess what you like
-
What is the basic logic of MapReduce client for map phase parallelism planning?
-
What is the description of the configuration of SQL operations for DTS self built MySQL synchronization to RDS MySQL synchronization?
-
What is the leftmost and most prefixed principle of MySQL?
-
What is the description of setting alarm configuration for DTS self built MySQL synchronization to RDS MySQL?
-
What does MySQL overlay index and back table refer to?
-
What are the instructions for configuring the case policy of the object name of the target database synchronized from DTS self built Mysql to RDS MySQL?
-
How to pull data from maxcompute and upload results?
-
How to use serverless log to realize alarm?
-
What is optimizing bitmap indexing?
-
Source table DMS_ ONLINE_ What is the description of whether to copy the temporary table to the target library during DDL?
Random recommended
- Will MySQL's non clustered indexes be queried back to the table?
- How to schedule periodically in maxcompute?
- What are the instructions for configuring the retry time after DTS self built MySQL is synchronized to RDS MySQL's source database and target database cannot be connected?
- Why should MySQL pay attention to the order in the composite index?
- What is an object storage OSS?
- What are the characteristics of the seamless connection between cloud storage and maxcomputesql?
- What is the definition of MySQL database transaction?
- What are the steps of hologres real-time writing and point query?
- What is machine learning Pai?
- What source databases are supported for synchronization between RDS and MySQL instances?
- What target databases are supported for synchronization between RDS and MySQL instances?
- What are the prerequisites for supporting synchronization between RDS and MySQL instances?
- What are the three implications of MapReduce?
- What are the data formats supported by maxcomputesql
- What is hologres' view of the execution plan?
- What are the source database restrictions for synchronization between RDS and MySQL instances?
- What is the difference between physical server and cloud server?
- What are other restrictions on synchronization between RDS and MySQL instances?
- What is the origin of MapReduce?
- What is a physical server?
- What is the description of the special case of synchronization between RDS and MySQL instances?
- What is the synchronization architecture supported for synchronization between RDS and MySQL instances?
- How does MySQL store Emoji expressions in the database
- How can MySQL select statements only take the first data? How to get the sum of a column of different individuals? 【LIMIT/GROUP BY】
- JavaScript wechat applet solves the problem at the front end. The front end receives data of date time type one day less than that in the database
- What book do you read about C introduction?
- Ask questions about the use of switch in JS.
- JSP suddenly does not recognize java code?
- Use the temporary URL for authorized access. After obtaining the URL, how to send a post request to initialize the segmented upload task
- How to write the code about the oscillation phenomenon of interpolation polynomial in MATLAB?
- About SQL, I can't write it out!
- Please tell me how to write it
- I want to download this 24212 version, but the default download found on the official website is 14.0.23026. Where can I download this
- In C language, how to initialize a string in the structure array (that is, assign a value to a string or make a string empty)
- Push box, why can s move normally when the first character (W, a, s, d) is input, and then only the input characters are displayed (the character array is copied and deformed)
- What went wrong? It can't run
- Matlab about signal input and triangular wave square wave
- Ask for help. How can I get the project column back
- Pictures are stored in OSS with window When open, the same origin policy will appear,
- Ask how to do this problem. Zero basis won't
- Pdf exported by kendoui cannot be recognized & lt; th&gt; What about bold fonts?