Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bsolisale committed Oct 19, 2015
0 parents commit ba83641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
@@ -0,0 +1 @@
# quiz7

This comment has been minimized.

Copy link
@bsolisale

bsolisale Oct 19, 2015

Author Owner

include

using namespace std;
long fibonacci(int a)
{
return fibonacci(a-1) + fibonacci(a-2);
}
int main ()
{
int a;
cout << "Insert number"<< endl;
cin >>a;
cout << "The fibonacci number is " << fibonacci(a) << endl;
return 0;
}

This comment has been minimized.

Copy link
@bsolisale

bsolisale Oct 19, 2015

Author Owner

#include

include

using namespace std;
int main ()
{
string a;
cout << "Insert a word or a number" << endl;
getline (cin, a);
if (a == string(a.rbegin(), a.rend()))
{
cout << a << " is a palindrome" << endl;
}
else
{
cout << a << " is is not palindrome" << endl;
}
return 0;
}

0 comments on commit ba83641

Please sign in to comment.