This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int list1[100]; | |
| int list2[100]; | |
| int x, y; | |
| int total = 0; | |
| int d; | |
| void dot_product(int x[], int y[], int i, int j){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Isaac de Jesús Bernal Iñiguez/ A01226968 | |
| #include <iostream> | |
| using namespace std; | |
| int a; | |
| int b = 0; | |
| int c = 1; | |
| int d; | |
| int e; | |
| int fibonacci(int a){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Isaac de Jesús Bernal Iñiguez/ A01226968 | |
| #include <iostream> | |
| using namespace std; | |
| long int operation = 1; | |
| long c; | |
| long d; | |
| long int superpower(long a, long b){ | |
| for(int c = 1; c <=b; c++){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Isaac de Jesús Bernal Iñiguez/ A01226968 | |
| #include <iostream> | |
| using namespace std; | |
| int triangules; | |
| void triangule(int a){ | |
| for(int t = 1; t <= a; t++){ | |
| cout << "T" << endl; | |
| if (t < a){ | |
| for(int c = t; c >0; c--){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include "BigIntegerLibrary.hh" | |
| using namespace std; | |
| BigInteger module; | |
| BigInteger change(int a){ | |
| module = 0; | |
| do{ | |
| module = module * 10 + a % 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int x1, x2, m, num1, num2; | |
| void euclids(int a, int b){ | |
| if (a == 0){ | |
| m = b; | |
| cout << "Minimum common denominator is: " << m << endl; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using std::cout; | |
| using std::cin; | |
| using std::endl; | |
| int array, module, i; | |
| int arrays[10]; | |
| void find_threes(int a){ | |
| for(int i = 0; i < a; i++){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| void is_palindrome(string a, string b){ | |
| for(int i = a.size()-1; i >= 0; i--){ | |
| b += a.at(i); | |
| } | |
| if (b.compare(a)==0) cout<<"It is a palindrome"<<endl; | |
| else cout <<"It is not a palindrome"<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using std::cout; | |
| using std::cin; | |
| using std::endl; | |
| double presicion; | |
| long double acomulator = 1; | |
| long double e1 = 0; | |
| long double e2, difference; | |
| int y = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| using std::cout; | |
| using std::cin; | |
| using std::endl; | |
| int x[10]; | |
| int sum; | |
| int multiplication = 1; | |
| int square, addition, variation; |
NewerOlder