We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
How do i perform basic input and output operations in C++ for my site capckutapk? Write a simple program that takes a user's name and age as input and then outputs a greeting message along with their age
string name = "";
int age = 0;
cout << "What is you name?" << endl;
cin >> name;
cout << "How old are you?" << endl;
cin >> age;
printf("Hello, %s, nice to meet you. You have %i years right?", name.c_str(), age);
return 0;
Input and Output
You are viewing a single comment's thread. Return to all comments →
How do i perform basic input and output operations in C++ for my site capckutapk? Write a simple program that takes a user's name and age as input and then outputs a greeting message along with their age
you must have to include the String library
using namespace std;
int main() {
}
you can perform very easily here is guide
I also need for my site mineckraftapk