-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.hpp
More file actions
34 lines (31 loc) · 769 Bytes
/
functions.hpp
File metadata and controls
34 lines (31 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <cmath>
#include <iostream>
double pitagori (double a, double b){
return pow(a,2)+pow(b,2);
}
double cubus(double a){
return pow(a,3);
}
double katrina1(double a, double b, double c){
return -b+pow(pow(b,2)-4*a*c,0.5)/(2*a);
}
double katrina2(double a, double b, double c){
return -b-pow(pow (b,2)-4*a*c,0.5)/(2*a);
}
void elpepe(){
std::cout<<"hehey que pasa chavales todo bien todo correcto y yo que me alegro"<<std::endl;
}
void buscarctr(){
int ae =0;
std::cout<<"pasa 73 numeros, bueno, solo uno, yo me encargo de dartelos"<<std::endl;
std::cin>>ae;
for(int i =0; i<ae; i++){
if(ae%27==0){
std::cout<<i<<"\n";
}
else{
std::cout<<"no hay moros en la costa"<<std::endl;
}
}
}