Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ scanf always expects double and not float

float max, zz, rate, time, percent;

printf("Please enter the size (in GB): ");
scanf_s("%f", &max);

printf("
Please enter how much you have downloaded already (in GB): ");
scanf_s("%f", &zz);

printf("
Please enter the downloadrate (in kB/s): ");
scanf_s("%f", &rate);
Comment

PREVIOUS NEXT
Code Example
Cpp :: pagesNumbering C++ 
Cpp :: omp multiple reductions 
Cpp :: primtiive calculator in c++ 
Cpp :: transform c++ 
Cpp :: c++ correct upto 3 decimal places 
Cpp :: KUNG FU HUSTLE 
Cpp :: what type is this c++ 
Cpp :: how are c++ references implemented 
Cpp :: easy way to encrypt a c++ file line by line 
Cpp :: set precision on floating numbers 
Cpp :: the statement vector vector int matrix(100 vector int (50 100) ) declares 
Cpp :: c++20 inizialize a thread 
Cpp :: sfml get position 
Cpp :: Accepting multiple inputs on the SAME LINE C++ 
Cpp :: cpp practice questions 
Cpp :: Calcular el número mayor y menor C++ 
Cpp :: c++ set value to inf 
Cpp :: Marin and Photoshoot codeforces solution in c++ 
Cpp :: convert c to C language 
Cpp :: find a member variable in a vector of objects cpp 
Cpp :: Initialize Vector Iterator with begin() function 
Cpp :: cplusplus 
Cpp :: arrays to function c++ 
Cpp :: run c++ files on chrome book 
Cpp :: C++ Enumeration Type 
Cpp :: _ZNSolsEi 
Cpp :: Integer Literrals in C++ Programming 
Cpp :: c++ max 
Cpp :: what does : mean in c++ 
Cpp :: size of set c++ 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =