Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n1;
- float n1_float = ( (float) n1 ); /* riempie la variabile n1_float con il valore di n1 ma convertito in float */
- cin >> n1;
- cout << "n1: " << n1 << endl;
- cout << "n1_float:" << n1_float << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement