Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by JekabsJencs ( 13 years ago )
#include <iostream>
#include <conio.h>
using namespace std;
int main ()
{
int y,nt=0,pt=0;
while(y!=0)
{
cout <<"input number/ievadi skaitli"<<endl;
cin>>y;
if(y>0)
{
pt=pt+y; // pt=positive temp
}
else if(y<0)
{
nt=nt+y; // nt=negative temp
}
else
{
cout << "you input 0/tu ievadiji nulli"<<endl;
}
}
cout <<"positive number sum/pozitivo skaitlu summa:"<< pt <<endl;
cout <<"negative number sum/negativo skaitlu summa:"<<nt <<endl;
getch();
return 0;
}
// you need help php,mysql,java,flash,c,c#,c++,pascal call me +371 25449473 email:[email protected]
//ja tev nepiešama palīdzība,php,mysql,java,flash,c,c#,c++,pascal call me +37125449473 email:[email protected]
Revise this Paste