0

Why is it that i can not use the clrscr() in SoloLearn code playground?

Clear screen

12th Nov 2022, 10:01 AM
Liza Tolentino
5 Respuestas
+ 5
How do you think your code is executed? On your device? On their servers? Which screen do you want to clear if your results are displayed in an Android display widget or the web browser (or accordingly depending on the device you use)? Also, C does not come with builtin support for attached display devices. There is thus no clrscr function in C.
12th Nov 2022, 10:14 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 1
I saw this program in another Apps.. I noticed some functions were not discussed in SoloLearn
12th Nov 2022, 12:07 PM
Liza Tolentino
+ 1
conio.h was part of the Borland Turbo C suite that contained functions to control an integrated console. Turbo C is out of commission for several decades now and should not be used. Please also refer to discussions linked here: https://www.sololearn.com/Discuss/2691684
12th Nov 2022, 12:26 PM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 1
Way back 1998 i learned about this turbo c but not all were taught. It's just now i go back learning programming.. Thanks for info.
12th Nov 2022, 4:01 PM
Liza Tolentino
0
#include < stdio.h > #include < conio.h > void main ( ) { int n , r , sum = 0 , temp ; clrscr ( ) ; printf ( " enter the number = " ) ; scanf ( " % d " , & n ) ; temp = n ; while ( n > 0 ) { r = n % 10 ; sum = ( sum * 10 ) + r ; n = n / 10 ; } if ( temp == sum ) printf ( " palindrome number " ) ; else printf ( " not palindrome " ) ;
12th Nov 2022, 12:06 PM
Liza Tolentino