#include
using namespace std;
int main()
{
short numberOfDays = 0;
cout << "Enter a number of days (365 or 366): ";
cin >> numberOfDays;
if (numberOfDays == 365)
{
cout << "\nIt's not a leap year\n";
}
else
{
cout << "\nIt's a leap year\n";
}
return 0;
}
write a c++program by using if statement to read a number and check whether it is positive or negative
Type your answer here... i think we should first enter 1 number then check it
165
Yes, do write, or if you're too lazy to your homework, use google.
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
write a program in C to check whether a given number is apalindrome or not
8086 assembly language program to check wether given number is perfect or not
write a c++program by using if statement to read a number and check whether it is positive or negative
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
Use the Exception class and type converters.
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
Active Time spent online
Type your answer here... i think we should first enter 1 number then check it
Check the documentation of the String class, for a method that searches for a substring.
program to extract a given word from a file
It is your face
You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }