This is very interesting program.when you compile and run this program it will ask you that "do you want to shut down your computer?".so this is an interesting application of c++.
#include <stdio.h>
#include <stdlib.h>
main()
{
char ch;
printf("Do you want to shutdown your computer now (y/n)\n");
scanf("%c",&ch);
if (ch == 'y' || ch == 'Y')
system("C:\\WINDOWS\\System32\\shutdown -s");
return 0;
}
End
ReplyDeletenice article for beginners.thank you.
javacodegeeks
https://www.vishalbhardwaj.com/2020/07/Commerce-Business-Administration.html
ReplyDeletehttps://www.vishalbhardwaj.com/2020/07/Commerce-Notes.html
https://www.vishalbhardwaj.com/2020/06/what-is-data-structure.html
https://www.vishalbhardwaj.com/2020/07/CPP-in-Hindi.html