Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Taking Multiple Inputs

#include <iostream>
using namespace std;

int main() {
    char a;
    int num;

    cout << "Enter a character and an integer: ";
    cin >> a >> num;

    cout << "Character: " << a << endl;
    cout << "Number: " << num;

    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Taking #Multiple #Inputs
ADD COMMENT
Topic
Name
2+9 =