cout << "Hello ISC";
#include int main() { int a=5,b=30; cout << "Hello ISC" //simple use to print the string cout << "Value of a=" << a; //To print the value of variable a cout << "Value of a=" << a << "\n Value of b=" << b; //print multiple values }
int a;cin >> a;
#include int main() { int a,b; cout << "Enter value of a:" ; cin >> a ; //reads the value of a from keyboard cout << "Value of a=" << a; cout << "Enter value of a and b:"; cin >> a >> b; //reads the value of a and b cout << "Value of a=" << a << "\n Value of b=" << b ; }
cout << " Hello " << " ISC "; cout << "Value of B=" << b;
int n1,n2,n3; cin >> n1 >> n2 >> n3 ; cin >> n1 >> n2 ;