Class 6 Period 5

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Dt:24-04-2020/Class 6- Period 5

#incude<iostream.h>

#include<conio.h>

void main()

clrscr(); // this function is used to clear the screen.

cout<<”Hello World”; //this is a print statement.

clrscr();

cout<<”Country Road”;

getch(); // this function waits until and unless any input is given.

Output: Country Road

Q4 Find the output

#include<iostream.h>

#include<conio.h>

void main()

clrscr();

cout<<"Hello World";

getch();

cout<<"Country Road";

getch();

Output

Hello WorldCountry Road


Q5

Find the output

#include<iostream.h>

#include<conio.h>

void main()

clrscr();

cout<<"Hello World"<<endl;

cout<<"Country Road";

getch();

Output

Hello World

Country Road

HW

Q6 Find the output

#incude<iostream.h>

#include<conio.h>

void main()

cout<<”Kolkata”;

cout<<”Mumbai”;

clrscr();

Q7. Write a program to display your name, address and contact in different lines.

You might also like