Pages

Friday, March 21, 2025

inputs in C++? How does it work

 


#include<iostream>
#include<iomanip>
using namespace std;

int main() {
    int age; // garbage value
    cout<<"Enter your age: ";
    cin>>age;  // cin waits for a value to be entered

    cout<<"your age is "<<age<<endl;
    return 0;

}

No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...