This is the output of every programmer who is writing a code for the first time.
So ,
Vacation Ending
Excited about next Sem
Results out
Some worried and Some Happy
No need to worry because
“Only those who dare to fail greatly can ever achieve greatly.”
The best way to make a code universally applicable on every language is to make a ALGORITHM of the code or you can also make a FLOW CHART or PSEUDO CODE.
Algorithm is a self-contained step-by-step set of operations to be performed.
Learn more about Algorithm visit the link given below
Or you can also visit Wikipedia.
Learn Basics of C visit the link given below
C program to shutdown or turn off computer
#include <stdio.h>
#include <stdlib.h>
int 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;
}
For
#include <stdio.h>
#include <stdlib.h>
int main()
{
system("C:\\WINDOWS\\System32\\shutdown /s");
return 0;
}
For
#include <stdio.h>
int main() {
system("shutdown -P now");
return 0;
}

1. One day Amit saw that his computer has displayed him
01001000
01001001
Write a program to help him to decode this in a meaningful message.
Solutions:
2. A company needs a program where only mobile number is entered for details of that person. Write a program which checks whether entered number is proper mobile number(Starting of number can be with any digit from 0-9) or not. On entering wrong mobile number should display a proper message.
Solutions:
3. A student, weak in Mathematics, tries to know that which three numbers can be lengths of three sides of a right-angled triangle. Help him out by writing a code which informs him whether entered three numbers can be side of the right-angled triangle or not. Program should display appropriate message.
Seeker for Question-3
Name: Kavan Majithiya
Class: 3rd IT
Language: C
IDE: CppDroid
Solutions:
Please kindly send your solution to our G-mail account: codeseekers@gmail.com
And please specify your Name, Branch, IDE Name or Language Name and your own pic.
If your still not a member of this club then register here now for free membership:
No comments:
Post a Comment