clrscr in cpp

Solutions on MaxInterview for clrscr in cpp by the best coders in the world

showing results for - "clrscr in cpp"
Damián
10 Apr 2018
1#include<iostream.h>
2#include<conio.h>
3
4void main()
5{
6int a=10, b=20;
7int sum=0;
8clrscr();  // use clrscr() after variable declaration
9sum=a+b;
10cout<<"Sum: "<<sum;
11getch();
12}