Quipex

zadanie_5

Oct 5th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // zadanie_5.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8.  
  9. int main()
  10. {
  11.     float i=0,j;
  12.     bool stoyat=false;
  13.     do
  14.     {
  15.         j=i;
  16.         cin>>i;
  17.         if((i>0)&&(j>0))
  18.         {
  19.             stoyat=true;
  20.         }
  21.     }
  22.     while(i!=0);
  23.     cout<<endl;
  24.     if (stoyat==true)
  25.     {
  26.         cout<<"soderjit"<<endl; cout<<endl;
  27.     }
  28.     else
  29.     {
  30.         cout<<"ne soderjit"<<endl; cout<<endl;
  31.     }
  32.     system("pause");
  33.     return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment