-E-xPeRiEnCe Posted September 22, 2010 Report Posted September 22, 2010 (edited) int main ();{ int a;b;c;d; float m1,m2,p; cin >>a>>b>>c>>d; m1=(a+b)/2 m2=(c+d)/2 p=m1*m2; cout <<m1<< <<m2<< <<p<<endl; return 0;}Ce este gresit?!e in MinGW Edited October 28, 2011 by [E]xPeRiEnCe Quote
-E-xPeRiEnCe Posted September 22, 2010 Author Report Posted September 22, 2010 (edited) Nu merge...are 2 erori,s-ar putea sa fie de vina copiler`ul?!daca da,puteti sa imi dati altul? Edited September 22, 2010 by [E]xPeRiEnCe Quote
curiosul Posted September 22, 2010 Report Posted September 22, 2010 (edited) Comparale si o sa vezi diferenta.#include<iostream.h>int main (){ int a,b,c,d;float m1,m2,p;cin >>a>>b>>c>>d;m1=(a+b)/(float)2;m2=(c+d)/(float)2;p=m1*m2;cout<<m1<<" "<<m2<<" "<<p<<" "<<endl;}//sau asa://cout<<"m1="<<m1;//cout<<"m2="<<m2;//cout<<"p="<<p; Edited September 22, 2010 by curiosul Quote
-E-xPeRiEnCe Posted September 22, 2010 Author Report Posted September 22, 2010 (edited) Gata,a mers,multumesc tuturor.T/C Edited September 22, 2010 by [E]xPeRiEnCe Quote