answersLogoWhite

0


Best Answer

Readln discards all other values on the same line, but read does not.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between read and readln in pascal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.


What is purpose of pascal?

The Pascal language is used just like any other programming language. In the 70's and 80's, Pascal and Basic were the most common languages taught for beginning programming classes. Pascal is the foundation of the popular Delphi programming language as well as part of the Oxygene language for .NET. Pascal language is easier to read and is not case sensitive, which can add to difficulty in learning programming. It's also easier to debug.


What are the similarities and differences between procedures and functions in pascal programming language?

Procedures and functions are exactly the same in Pascal, the only difference is that a function must return a value to its caller while a procedure does not. A procedure is essentially the same as a function returning void in C. We use procedures and functions to avoid writing duplicate or repeated sections of code and thus reduce maintenance costs. With well-named procedures and functions our code also becomes self-documenting, making the code much easier to read (and maintain).


What is the difference between sed and awk?

They both are frequently used programs in UNIX, but they do different things. Read their manuals if you want to use them.


What is the difference between File Reader and FileInputStream in java?

FileReader used to read the character stream in the file.i.e a file that contanis only the character means FileReader is the choice to read the file.On the other hand if the file contains image,byte like raw data format means FileInputStream is the choice to read the data in the file,.

Related questions

How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.


How did Blaise Pascal discover pascals triangle?

He read about it. The idea existed long before Pascal Pierre Raymond de Montmort, just named it after Pascal after Pascal used it to solve problems of probability theory.


What is the difference between aerobic and anaerobic treatment of waste materials?

The difference is that ,,,You have to read the book!


What is the primary difference between an annuity and a compound annuity?

difference between an annuity and a compound annuity?Read more: What_is_the_primary_difference_between_an_annuity_and_a_compound_annuity


In programming data read by programming is called?

Pascal language is used to read the programming data.


What is difference between usage world and subject world?

What is difference between usage world and subject world?Read more: What_is_difference_between_usage_world_and_subject_world


In a circle what is the difference between a central angle and an arc?

In a circle what is the difference between a central angle and an arc?Read more: In_a_circle_what_is_the_difference_between_a_central_angle_and_an_arc


What is the difference between dual core and atom processor?

What is the difference between dual core and atom processor?Read more: What_is_the_difference_between_dual_core_and_atom_processor


Difference between theory and practical knowledge?

Theory refers to the understanding of principles and concepts, while practical knowledge involves hands-on experience and application of those principles in real-world situations. Theory provides the foundation and framework for practical knowledge to be developed and applied effectively. Combining both theory and practical knowledge is essential for a well-rounded understanding and proficiency in any field.


What is the difference between a drive and a disk?

The difference between a drive and disk is that a drive is used to read a disk whether it be a floppy disk or a compact disk.


What is the difference between oral and written communication?

Oral is spoken and written is read


How do you tell the difference between self-raising and plain flower?

Read the label.