Forgotten password

Language

Bulgarian    English

Advertisements




Report a bug !
Add search function to you browser

Powered by PHP Powered by MySQL
Pascal емулатор
1 member(s) online
Size control Print  Language: Pascal

Examples://Code arrange


To solve the problem you should shift the code with your mouse to end up with working solution.

Problem:
Write down a program that initiates symbols until point is initiated and until it defines how many of them are not Latin letters


  • char ch;
  • cin>>ch;
  • write('Enter symbol: ');
  • int br=0;
  • br : byte;
  • void main()
  • if ((!((ch>'a')&&(ch<'z'))) && (!((ch>'A')&&(ch<'Z')))) br++;
  • } while (ch!='.');
  • do{
  • begin
  • cout<<"br="<<br;
  • cout<<"Enter symbol:";
  • if not (ch in ['a'..'z', 'A'..'Z', '.">) then br := br+1;
  • write('br= ', br)
  • repeat
  • readln(ch);
  • var ch : char;
  • {
  • }
  • until ch='.';
  • br := 0;
  • end. #include<iostream.h>