// Zeinalipour-Yazti Demetrios // csyiazti // cs10xx - // Lab Sec#24 // lab2 /* Your program should ask the user to enter * 1) a character, * 2) an integer, * 3) a floating-point value. * and then it will display nicely the outpout */ #include void main() { /* These variables will hold the three values entered by the user */ int i; float f; char c; /* Solution 1 */ cout << "Please type in an integer: "; cin >> i; cout << "Please type in a float: "; cin >> f; cout << "Please type in a character: "; cin >> c; cout << "The int you gave is : " << i << endl; cout << "The float you gave is: " << f << endl; cout << "The char you gave is: " << c << endl; /* Solution 2 */ cout << "Please type in an integer, a float,a char: "; cin >> i >> f >> c; cout << "int: " << i << ", float: " << f << " , char: " << c; }