Search
 
SCRIPT & CODE EXAMPLE
 

CPP

calculate how many liters would be needed

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    float spentTime,kmH , carSpeed(12);
    cin >> spentTime >> kmH;
    cout.precision(3);
    cout << fixed << (spentTime * kmH) / carSpeed << endl;
    
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: cuda extern __shared__ 
Cpp :: print 5 table in c++ 
Cpp :: c++ display numbers as binary 
Cpp :: newline in c++ 
Cpp :: distinct colors cses solution 
Cpp :: capacity() in c++ 
Cpp :: cannot find "-lsqlite3" C++ 
Cpp :: delete specific vector element c++ 
Cpp :: number to binary string c++ 
Cpp :: char vector to string c++ 
Cpp :: C++ Area of a Rectangle 
Cpp :: user input c++ 
Cpp :: resize two dimensional vector c++ 
Cpp :: format c++ discord 
Cpp :: binary string addition 
Cpp :: read struct from file c++ 
Cpp :: c++ user input 
Cpp :: c++ competitive programming mst 
Cpp :: c++ check if string is empty 
Cpp :: how to check if a value is inside an array in c++ 
Cpp :: c++ length of char* 
Cpp :: latex double subscript 
Cpp :: c++ how to make a negative float positive 
Cpp :: iterate over map c++17 
Cpp :: number of words in c++ files 
Cpp :: Resize method in c++ for arrays 
Cpp :: primes in range cpp 
Cpp :: minimum value in array using c++ 
Cpp :: glew32.dll was not found 
Cpp :: swapping of two numbers 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =