Answers for "c++ int cin"

C++
3

cin c++

#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;
}
Posted by: Guest on May-11-2022
3

cin c++

std::cin >> variable_name; //It takes input from the user
Posted by: Guest on August-17-2021
-1

c++ cin

cin >> 變數名稱;//將值輸入到變數之中
Posted by: Guest on October-25-2021

Browse Popular Code Answers by Language