My Math Forum  

Go Back   My Math Forum > Science Forums > Computer Science

Computer Science Computer Science Forum


Thanks Tree2Thanks
  • 1 Post By Joppy
  • 1 Post By Benit13
Reply
 
LinkBack Thread Tools Display Modes
May 10th, 2017, 09:02 AM   #1
Member
 
Joined: May 2014
From: Allentown PA USA

Posts: 98
Thanks: 6

Math Focus: dynamical systen theory
Analogous constructs

Dear MyMathForum Community:

Are the REPEAT construct in Pascal, the do...while construct in C++, and
the DO...WHILE construct in Fortran 90/95 analogous to each other? Thank you.


Best regards,
Carl Mesaros
Carl James Mesaros is offline  
 
May 10th, 2017, 05:39 PM   #2
Senior Member
 
Joined: Feb 2016
From: Australia

Posts: 1,353
Thanks: 464

Math Focus: Yet to find out.
Do you mean 'repeat until'? If so, then yes, it would be the same. The idea being that conditions are checked after the first loop.
Thanks from Carl James Mesaros
Joppy is offline  
May 11th, 2017, 01:28 AM   #3
Senior Member
 
Joined: Apr 2014
From: Glasgow

Posts: 2,068
Thanks: 692

Math Focus: Physics, mathematical modelling, numerical and computational solutions
Quote:
Originally Posted by Carl James Mesaros View Post
Dear MyMathForum Community:

Are the REPEAT construct in Pascal, the do...while construct in C++, and
the DO...WHILE construct in Fortran 90/95 analogous to each other? Thank you.


Best regards,
Carl Mesaros
Your language is strange, but yes. The "repeat-until" statements in Pascal, the "while" statement in C++ and the "do-while" statements in Fortran implement conditional looping.

In many programming languages the ability to perform particular logic operations is very often the same... what differs is the "syntax" (a word that sort of means "grammar").
Thanks from Carl James Mesaros
Benit13 is offline  
May 11th, 2017, 05:36 AM   #4
Member
 
Joined: May 2014
From: Allentown PA USA

Posts: 98
Thanks: 6

Math Focus: dynamical systen theory
To "Joppy":
Yes, I meant the REPEAT...UNTIL construct in Pascal. Thank you.


Best regards,
Carl Mesaros
Carl James Mesaros is offline  
Reply

  My Math Forum > Science Forums > Computer Science

Tags
analogous, constructs



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Analogous Results Math Dreamer New Users 0 June 26th, 2011 11:26 AM





Copyright © 2017 My Math Forum. All rights reserved.