You are on page 1of 3

Problems 1

Q1.

#include<iostream>

using namespace std;

int main ()

cout<<"Hello!"<<endl;

cout<<"This is your computer."<<endl;

cout<<"What is your name?"<<endl;

return 0;

Output
Q2.

#include<iostream>

using namespace std;

int main ()

cout<<"Hello!\nThis is your computer.\nWhat is your name?"<<endl;

return 0;

Output
Q3

#include<iostream>

using namespace std;

int main()

cout<<"***********\t*Welcome*\t***********"<<endl;

return 0;

Output

You might also like