DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
how to get double y dividing 2 integers in c++
int a {10}, b {3}; //output : 3.333 double c {}; c = static_cast<double>(a)/b; cout<<c;
PREVIOUS
NEXT
Tagged:
#double
#dividing
#integers
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit