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> | |
int main() { | |
std::cout << "¡Hello world!"; | |
return 0; |
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 main (){ | |
int num1, num2; | |
cout << "Insert a integer number: " ; | |
cin >> num1 ; | |
cout << "Insert another integer number: " ; |
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 main() | |
{ | |
double farenheit, celcius; | |
cout << "Give the temperature in farenheits\n"; | |
cin >> farenheit; |
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> | |
using namespace std; | |
int guess, ranm; | |
int cont=1; | |
int main() | |
{ | |
srand(time(NULL)); |
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 main(){ | |
int n1, n2; | |
cout << "We will calculate the sum of integers in the range you provide.\n"; | |
cout<< "Please give us the lower bound: \n"; | |
cin>> n1; | |
cout<< "Please give us the upper bound: \n"; |
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> | |
#include <cstdlib> | |
int suma ( int a, int b) | |
{ | |
int s; | |
s=a+b; | |
return s; | |
} |
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> | |
#include <cstdlib> | |
int superpower (int a, int b) | |
{ | |
int exp; | |
exp = pow(a,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> | |
#include <cstdlib> | |
int stars (int a, int cont=0) | |
{ | |
int st; | |
do{ | |
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 "BigIntegerLibrary.hh" | |
using namespace std; | |
int palindromos=0,nly=0, ly=0; | |
BigInteger s; | |
BigInteger reves (int num ){ | |
int volt=0; | |
while(num>0) | |
{ | |
volt= volt*10 + num%10; |
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> | |
int distancia (int x2, int x1, int y1, int y2) | |
{ | |
int dis, d; | |
dis= d = sqrt((pow((x2-x1),2))- (pow((y2-y1),2))); | |
return dis; | |
} |
OlderNewer