1. Program to illustrate the concepts of console I/O operations.
#include <iostream.h>
#include<conio.h>
int main() {
int num;
char name[50];
// Input operations
cout << "Enter an integer: ";
cin >> num;
cout << "Enter your name: ";
cin <<name;
// Output operations
cout << "You entered: " << num << endl;
cout << "Your name is: " << name << endl;
getch();
return 0;
}