• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

How do i take an input from the user and put into my variables??

#include <iostream>

using namespace std;

int main(){

String =0;
NumOne = 0;
NumTwo = 0;
NumThree = 0;
NumFour = 0;
NumFive = 0;

      cout << "Please Enter A Palindrome:  ";
      cin >> String;

      if(NumOne == NumFive && NumTwo == NumFour)
      cout << " Thats correct its a Palindrome " << endl;
      
      else  
      cout << " INCORRECT INVALID PALINDROME" << endl;

      return 0;
}

How do i get what they input into my variables
0
tedschnieders
Asked:
tedschnieders
1 Solution
 
PennGwynCommented:
That's what cin is doing.

Although you don't seem to have defined any of your variables, and this forum is "Networking" and not "C++ Programming"....

0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now