// zadanie_5.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
float i=0,j;
bool stoyat=false;
do
{
j=i;
cin>>i;
if((i>0)&&(j>0))
{
stoyat=true;
}
}
while(i!=0);
cout<<endl;
if (stoyat==true)
{
cout<<"soderjit"<<endl; cout<<endl;
}
else
{
cout<<"ne soderjit"<<endl; cout<<endl;
}
system("pause");
return 0;
}
Comments