first include " #include<stdio.h>" and "#include<conio.h>" header file in top of program. define main() function.
Note:- main() is a user define function.
It use to display output.
It is the function of stdio.h header file.
Syntax
printf("............");
It use to clear output screen.
Without clrscr() run program more time, you can see previous output data in current output screen. Therefore clrscr() use to clear screen first then display output.
If you do not use getch() then output screen do not wait for you. Therefore you can not see program output in turbo c++
If you want to wait output screen for you then you can use getch().
Comsysapp.com is an educational website. Students and software developers can learn programming language tutorials. Comsysapp is very useful for beginners and professional developers. Comsysapp provides tutorial in easy language. Comsysapp.com has focus on simplicity.
Comsysapp.com provides free tutorials like c, html, css, etc. All tutorials are free for beginner and professionals.
comsysapp.com is not responsible for any mistake. We are not responsible if information made available on our website is incomplete or invalid. But comsysapp.com always try for zero-zero mistake.
comsysapp.com does not collect any data from users. We use Google AdSense advertising on our website. We never ask personal or private information.
copyright © 2023