// i/o example
#include <iostream>
using namespace std;
int main ()
{
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "The value you entered is " << i;
return 0;
}
int main(){
std::string firstname; //variable created as a string
std::cout << "What's your first name
";
std::cin >> firstname;//asking for the users' first name
std:: cout << "Hello " << firstname
#include <iostream>
using namespace std;
int main() {
int n1, n2;
float f1;
char c1;
cout<<"Enter two integers, a float and a char: ";
cin>>n1>>n2>>f1>>c1; //multiple input in single line
cout<<"Check: "<<n1<<n2<<f1<<c1<<endl;
return 0;
}
int x;
cin >> x;
string s;
cin >> s;
cin >> variable;
// sample 1
int x;
cout << "x: ";
cin >> x;
cout << x << endl;
//sample 2
int num;
for (int i = 0; i < 10; i++){
cout << "Give a number: ";
cin >> num;
}