English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello ppl;
I have some problems about pascal programing, i know it's a old language, but in my country we re using it in schools, i got 4 exercises. And i really don't know how to reslove it.

1.Write a program in turbo pascal in which u must enter a string and after that the program must every character write in a new line.

Example, input: TURBO

Example, output:
T
U
R
B
O

2.Write a program who will enter a natural number N and a array of N natural numbers and a natural number A.The program must create and print out a new array who is consisting only with elements which are inputed by the array who are smaller then A.

Example, input: 5
5 7 8 3 1
6

Example, output: 5 3 1

2007-11-18 10:50:33 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

First, 1 question per question.

Second, what don't you understand about the first one? If you don't know how to input a string, you need to talk to your teacher, not asking us.

Third: general hint would be... input, process, output.

2007-11-18 11:22:19 · answer #1 · answered by Kasey C 7 · 0 1

fedest.com, questions and answers