Jump to content

Recommended Posts

Posted

Marti am inceput cu "programarea" la informatica. Am invatat sa lucram in C++.

#include <math.h>

#include <iostream>

using namespace std;

int main ()

{

int A,B,C,P;

float S;

cin>>A>>B>>C;

P=sqr();

S=sqrt(P/2*(P/2-A)*(P/2-B)*(P/2-C));

cout<<"P="<<P<<"S="<<S;

return 0;

}

#include <iostream>

using namespace std;

int main ()

{int x,y,z,m;

cin>>x,y,z;

m=(x+y+z)/2;

cout<<"Media este:"<<m;

}

#include <iostream>

using namespace std;

int main ()

{int x,y,z,t,m;

cin>>x>>y>>z>>t;

m=((x+y+z)/3*3+t)/4;

cout<<"Media este:"<<m;

}

#include <iostream>

using namespace std;

int main ()

{int x,y;

cout<<"Introduceti pretul actual:";

cin>>x;

y=x*2;

cout<<"Pretul precedent a fost:"<<y;

}

Asa de curiozitate, la fel se fac si jocurile mari (COD8,Batman etc.) ?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.