How to take multiple input from user
Duration: 5 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- About Course: About the Course
- English Language: Vocabulary, Noun, Adjectives, Tenses, Pronoun, Adverb, Preposition, Conjunction, Active Passive Voice (Voice), Articles, Direct and Indirect Speech, Sentence Correction (Error Correction), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Sentence Completion (Fill in the blanks), Cloze Test (Cloze Passage)
- Quantitative Aptitude & Numerical Ability: Ratio and Proportion (Ratios), Data Interpretation, Mixture and Alligation, Permutation and Combination, Number System, Sequence and Series (Series), Speed Time and Distance, Algebra, Speed Mathematics and Basic Mathematics, Percentage, Average, Time and Work, Simple Interest and Compound Interest, Profit and Loss, Age Problems, Partnership, Mensuration and Geometry, Probability, IBPS Specific Videos
- Reasoning: Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Puzzle Solving (Puzzles), Seating Arrangements, Blood Relations, Syllogisms, Inequality, Directions (Direction Test), Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Clock, Calendar, Analytical Reasoning (Counting Figures Reasoning), Selection Decision Table (Decision Making), Cubes & Dices, Machine Input-Output
- Data Structures- Professional Knowledge: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
- Algorithms- Professional Knowledge: Algorithm Analysis, Time Complexity Analysis, Sorting Algorithms, Greedy Algorithms, Dynamic Programming, Minimum Spanning Trees, Shortest Path Algos
- Python- Professional Knowledge: Python for Placements by Yash Sir, Collections & Strings, Functions & Modules, File Handling & Data Analysis, Python Basics
- Operating System- Professional Knowledge: Introduction to OS, Process Management, Process Synchronization, CPU Scheduling, Deadlock, Threads & Process Creation, Memory Management, Virtual Memory, Disc Scheduling, File Management, Unix OS, Linux OS, Windows OS
- DBMS + SQL- Professional Knowledge: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), File Organization & Indexing, SQL, Transaction Management, Concurrency Control, Relational Algebra, Relational Calculus, NoSQL, Data Warehousing & Mining
- Computer Networks- Professional Knowledge: Introduction to CN, Data Communication, Net Layer: IP Addressing, Net Layer: IPv4 & Proto, Application Layer, Hardware basics, Network Security, Transport Layer Services, DLL: Flow Control, Cloud Computing
- Software Engineering- Professional Knowledge: Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management
- Computer Organization & Microprocessor- Professional Knowledge: Basics of COA, Cache Memory Organization, Programming the Basic Computer, Instr Formats & Modes
- Digital Logic Design- Professional Knowledge: Digital Systems & Boolean Basics, Logic Gates & Hardware, Boolean Expression, Boolean Minimization, Combinational Circuit, Sequential Circuits, Number System, Number Representation
- Theory of Computation- Professional Knowledge: Introduction to TOC, Deterministic FA (DFA), Non-Deterministic FA, Regular Expressions, Regular Language Properties, Pushdown Automata & CFG, Turing Machines
- Compiler Design- Professional Knowledge: Intro to Compilers, Lexical Analysis, Grammar & CFG, Syntax Analysis: Top-Down, Intermediate Code Gen, Code Optimization
- Programming Languages- Professional Knowledge: C Programming by Yash Sir, Language Design, DMA, Macros, Scoping & File Handling, Object Oriented Programming (OOPS), Programming in C++, Java, HTML, C Language Core
- Emerging Tech- Professional Knowledge: Emerging Tech Trends, MS Office Applications
- Artificial Intelligence: Artificial Intelligence
- Image Processing: Digital Image Fundamentals
- Internet & Web Technology: Website, Browser & Services, Internet Fundamentals, Server Side & Security, Cyber Threats and Malware Attacks, Role of Internet and Web Services, Security in Mobile and Wireless Computing, Electronic Data Interchange and E-Commerce, Physical Security and Cryptography Basics, Cyber Safety and Security, Ethical Hacking
- Descriptive Paper: English Writing Ability
- Mains - Unit Tests:
- Mains - Full Mock Tests:
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
This video is a C++ programming tutorial that demonstrates how to write a program to calculate the sum of two numbers. The instructor, Yash Jain, a coding expert, first presents a basic program that takes two integers as input from the user and outputs their sum. The code includes the necessary header files, uses the standard namespace, and defines the main function. The program prompts the user to enter two numbers, reads them using cin, and then prints the result using cout. The tutorial then transitions to a more advanced method, showing how to read two numbers separated by a space in a single input line. The instructor demonstrates this by modifying the code to use a single cin statement to read both numbers and then prints the sum. The video includes a live coding session with the program being compiled and executed, showing the input and output in a console window. The instructor explains the logic and syntax of the code, emphasizing the use of the iostream library and the cin and cout objects for input and output operations.
Chapters
0:00 – 2:00 00:00-02:00
The video begins with a C++ code editor displaying a program to calculate the sum of two numbers. The code includes the necessary headers and uses the standard namespace. The main function is defined, and two integer variables, 'first_number' and 'second_number', are declared. The program prompts the user to enter the first number with 'cout<<"Enter First Number: ";' and reads the input with 'cin>>first_number;'. It then prompts for the second number and reads it. The sum is calculated and printed using 'cout<<"Sum of "<<first_number<<" and "<<second_number<<" is "<<first_number+second_number;'. The instructor, Yash Jain, is visible in a circular frame, explaining the code. The code is then executed, showing the input and output in a console window, with the program successfully calculating the sum of 10 and 20 as 30.
2:00 – 4:43 02:00-04:43
The instructor modifies the code to demonstrate an alternative input method. The new code prompts the user to 'Enter Both Numbers followed by Space: ' and uses a single 'cin>>first_number>>second_number;' statement to read both numbers from a single line of input. The program then calculates and prints the sum. The instructor explains that this method is more efficient for reading multiple inputs on one line. The code is compiled and run, and the console shows the user entering '10 20', and the program correctly outputs 'Sum of 10 and 20 is 30'. The instructor also shows a test case with negative numbers, entering '-5 15', and the program correctly outputs 'Sum of -5 and 15 is 10'. The video concludes with the instructor summarizing the two methods for inputting multiple numbers in C++.
The video provides a clear, step-by-step tutorial on C++ input and output operations. It starts with a fundamental program that takes two numbers as separate inputs and calculates their sum, reinforcing basic syntax and the use of cin and cout. The instructor then builds upon this foundation by introducing a more efficient method for reading multiple inputs from a single line, demonstrating the versatility of the cin operator. This progression from a simple to a more advanced technique effectively teaches students how to handle different input formats in C++ programs, making it a practical lesson for beginners.

