clrscr in cpp

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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}