- Compile the program using AltF9 , and then run the program using ControlF9.Save the file as name.CPP .That is , name of the file , followed by .CPP(dot CPP).Here I named the program "Firstprgrm." So, save it as Firstprgrm.CPP.================================================================
#include<iostream.h>#include<conio.h>void main(){clrscr();cout<<"My first C++ Program";getch();}=====================================Output :
My first C++ Program