Skip to content

Instantly share code, notes, and snippets.

View alonzoibarra97's full-sized avatar

alonzoibarra97

View GitHub Profile
#include <iostream>
int main() {
std::cout << "¡Hello world!";
return 0;
#include <iostream>
using namespace std;
int main (){
int num1, num2;
cout << "Insert a integer number: " ;
cin >> num1 ;
cout << "Insert another integer number: " ;
#include <iostream>
using namespace std;
int main()
{
double farenheit, celcius;
cout << "Give the temperature in farenheits\n";
cin >> farenheit;
#include <iostream>
#include <cstdlib>
using namespace std;
int guess, ranm;
int cont=1;
int main()
{
srand(time(NULL));
#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";
#include <iostream>
#include <cmath>
#include <cstdlib>
int suma ( int a, int b)
{
int s;
s=a+b;
return s;
}
#include <iostream>
#include <cmath>
#include <cstdlib>
int superpower (int a, int b)
{
int exp;
exp = pow(a,b);
#include <iostream>
#include <cstdlib>
int stars (int a, int cont=0)
{
int st;
do{
#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;
#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;
}