Is there anyway we can clear only a selected part of the console window?
clrscr() from conio.h & system("CLS") clears the whole screen.
So how to clear screen selectively?
For example, one of my old code prints this,
Enter the limit for the array size (Max: 20)
10
Enter the elements for the array
1
2
3
4
5
6
7
8
9
10
The greatest interger is 10
The smallest integer is 1
But i want it to be like this, just after the user enters the last element.
Enter the limit for the array size (Max: 20)
10
The greatest interger is 10
The smallest integer is 1