01 | #include<stdio.h> | 
02 | #include<stdlib.h> | 
03 | using namespace std; | 
04 | 
05 | main() | 
06 | { | 
07 | char ch; | 
08 | 
09 | printf("Do you want to shutdown your computer now (y/n)n"); | 
10 | scanf("%c",&ch); | 
11 | 
12 | if (ch == 'y' || ch == 'Y') | 
13 | system("C:\WINDOWS\System32\shutdown /s"); | 
14 | 
15 | return 0; | 
16 | } | 






No comments:
Post a Comment