Input and Output

  • + 3 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

    • + 0 comments

      you must have to include the String library

      using namespace std;

      int main() {

      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;
      

      }

    • + 4 comments

      you can perform very easily here is guide

    • + 0 comments

      I also need for my site mineckraftapk