Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main() {
// variable
int i;
float f;
cout<<"enter an integer:";
// read integer
cin>>i;
cout<<"enter a floating point:";
// read floating point
cin>>f;
// print both
cout<<"i="<<i<<" f="<<f<<endl;
return 0;
}
Explanation:
Read an integer and assign it to "i" then read a floating point and assign it to "f".After then print "i= value-of-i f=value-of-f" .
Output:
enter an integer:25
enter a floating point:12.34
i=25 f=12.34