Answers for "clrscr in cpp"

C++
2

clrscr in cpp

#include<iostream.h>
#include<conio.h>

void main()
{
int a=10, b=20;
int sum=0;
clrscr();  // use clrscr() after variable declaration
sum=a+b;
cout<<"Sum: "<<sum;
getch();
}
Posted by: Guest on April-15-2020

Browse Popular Code Answers by Language