All pastes #1217125 Raw Edit

Mine

public text v1 · immutable
#1217125 ·published 2008-10-02 18:26 UTC
rendered paste body
#include <iostream>
#include <conio.h>
using namespace std;

int main()
{
 int nWybor;
 int licznik;
 int nLiczba;
 int i;
 int wykladnik;
  cout<<"Program testowy. [1]For, [2]Do/While, [3]While :\n";
  cin>>nWybor;
  switch(nWybor)
  {
   case 1:
   cout << " Program wystukal liczby od 1 do 10:\n";
 for(int a=1;a<=20;a++)
 {
   if(a==11)
     break;

   cout<<a<<" ";
}
   break;
   case 2:
do
{
cout << "Wprowadz liczbe wieksza od 10: \n";
cin >> nLiczba;
} while (nLiczba <= 10);
cout << " Brawo \n";

   break;
   case 3:
        int ile ;

     cout << "Ile gwiazdek ma miec kapitan ? : " ;
     cin >> ile ;
     // petla while rysujaca gwiazdki
     while(ile)
     {
          cout << "*\n" ;
          ile = ile - 1 ;
     }
     break;
   default:
     cout<<"To nie jest ocena\n";
  }


getch ();
  return 0;
}