You are on page 1of 2

LAB NO.

2
 OBJECTIVE
1. Introduction to Programming:
2. Intro to Dev-C++ Compiler
3. Basic Program Structure in C++

LAB TASK 01:


Write the programme to express the word “HELLO C++ WORLD” :
Source Code:
1. #include <iostream>
2. using namespace std
3. int main ()
4. {
5. cout<< “ HELLO C++ WORLD ” <<endl;
6. return 0;
7. }

OUTPUT :
LAB TASK 02:
Write a programme to display table of 17
Source Code :
#include<iostream>
using namespace std;
int main()
{
cout<<"7 * 1 = "<<7*1<<endl;
cout<<"7 * 2 = "<<7*2<<endl;
cout<<"7 * 3 = "<<7*3<<endl;
cout<<"7 * 4 = "<<7*4<<endl;
cout<<"7 * 5 = "<<7*5<<endl;
cout<<"7 * 6 = "<<7*6<<endl;
cout<<"7 * 7 = "<<7*7<<endl;
cout<<"7 * 8 = "<<7*8<<endl;
cout<<"7 * 9 = "<<7*9<<endl;
cout<<"7 * 10 = "<<7*10<<endl;
return 0;
}
Output :

You might also like