0
How to use digit after decimal in c++ for calculation
if we want to divide something and get a decimal after 2 number so how can i get that number after decimal get added atomatically
1 Odpowiedź
+ 1
Your question is a bit unclear, do you want to do this?
#include <iostream>
int main() {
double a, b;
std::cin >> a >> b;
std::cout << a / b;
}