comp.lang.ada
 help / color / mirror / Atom feed
* Fortran 95: How do you write code to do this?
@ 2018-11-01  5:34 Michael_Smith@gmail.com
  2018-11-01  7:13 ` Petter Fryklund
  2018-11-02  9:05 ` Anatoly Chernyshev
  0 siblings, 2 replies; 12+ messages in thread
From: Michael_Smith@gmail.com @ 2018-11-01  5:34 UTC (permalink / raw)


Can you share with me both a simple program to do the following and also the best program imaginable? Please explain to me everything I need to know about the program!

1) Define a natural integer of n bits. Where n is some value such as 10 or 12.

2) Set the value of a boolean variable to the rightmost bit of this natural n-bit integer.

3) Shift the n-bit natural integer once left.

Repeat steps 2 and 3, for n different boolean variables.

Thanks,
Michael




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-11-02 14:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01  5:34 Fortran 95: How do you write code to do this? Michael_Smith@gmail.com
2018-11-01  7:13 ` Petter Fryklund
2018-11-01  7:18   ` Petter Fryklund
2018-11-01 16:35     ` Michael_Smith@gmail.com
2018-11-01 17:59       ` Jacob Sparre Andersen
2018-11-02  6:19         ` Petter Fryklund
2018-11-02  6:33           ` Petter Fryklund
2018-11-02  8:41             ` Dmitry A. Kazakov
2018-11-01  7:54   ` Simon Wright
2018-11-02  9:05 ` Anatoly Chernyshev
2018-11-02  9:14   ` gautier_niouzes
2018-11-02 14:37   ` Dennis Lee Bieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox