This file contains 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 <cstdlib> | |
#include <cmath> | |
using namespace std; | |
void menu_principal(); | |
void menu_sum(); | |
void menu_res(); | |
void menu_mul(); |
This file contains 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; | |
int i; | |
int main(){ | |
string cadena, cadenain; | |
cout<<"Give one word and i will tell you if it is a palindrome or not\n"; | |
getline(cin,cadena); |
This file contains 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; | |
long fibonacci (long num1){ | |
int a,b=0,c=1; | |
for(int i=1; i<num1; i++){ | |
a=b+c; |
This file contains 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 namespace std; | |
int sppw(long double num1, long double num2){ | |
long double producto; | |
producto= pow(num1,num2); | |
cout<< producto; |
This file contains 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 triangles(int size){ | |
for(int i=1; i<=size; i++) | |
{ | |
for(int n=1; n<i+1;n++) | |
cout<<"T"; |
This file contains 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; | |
double dot=0,i ; | |
double dot_product(double list1[], double list2[], int l){ | |
for(i=;i>l; i=i+1){ | |
dot=dot+ (list1[i]*list2[i]);} | |
return dot; | |
} |
This file contains 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; | |
long double rest=0,x=1; | |
void euler_calc() | |
{ | |
} | |
int main() | |
{ | |
long double e2, param; |
This file contains 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 gd_c (int a, int b){ | |
int gdc, mod1,div1; | |
do{ | |
if(a==0) | |
{ | |
gdc= b; | |
} |
This file contains 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 i; | |
int find_threes(int numbers[], int cant ){ | |
int n=0; | |
for(int i=0; i<cant; i=i+1) | |
{ | |
if(numbers[i]%3==0){ | |
n=n+numbers[i]; } |
This file contains 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; | |
int i; | |
string cadena, cadena_inv; | |
int main () { | |
cout<< "Give me the string: \n"; |
NewerOlder