Preface: I have not been formally trained on how to code. I have kind of winged it and done simple thing like registry entries via powershell.
I have a small script I am trying to run that will test to see how many Virtual Desktops I have running…
I am trying to combine multiple files in Fortran.
The files all have one column in common ("einst")
The main file has over 100.000 lines but the other files contain extra info about some of the IDs in the main file.
I want to merge the smaller files…
i just make easy equation(gaussian-plume eq.)
the goal is Concentration values based on x, y, z distribution
but the loop is stucked at just first step what's the problem?
here's my code
PROGRAM plume
IMPLICIT NONE
REAL,PARAMETER ::…
I want to fit multiple data set and plot the result on the same graph, what I' am doing is:
do for [i=2:500]{
fit f(x) "myData" using 1:i via a,b
plot f(x)
}
The fit works fine, the big problem is that this code produce a different plot at each…
Is there any programming language that has a do-until loop?
Example:
do
{
}
until ();
which is basically equivalent to:
do
{
}
while ();
NOTE: I'm looking for post-test loops.
I want to create a variable that resolves to the character before a specified character (*) in a string. However I am asking myself now if this specified character appears several times in a string (like it is in the example below), how to retrieve…
This code is meant to copy and paste x number of times based on a cell value.
It bugs out and doesn't stop the loop.
When I step into it, it runs once and stops.
"O7" is how many times I would like to copy and paste.
Sub WorksheetLoop()
Dim NS As…
I am trying to execute a code iteratively rather than manually.
What I would like to do is as follows: I add as an input a date (string format)
start=input("Start: mm/dd/yyyy ")
and I set this date equal to the end date:
end=start
then I run some…
I want to loop first through columns and then through rows.
data test ;
input cat $ cat3 cat4 cat5 cat6 cat7 cat8 num_rat ;
cards;
cat3 0 -1.78 -2.68 -3.06 -3.4 -3.83 1885
cat4 0 2.12 -2.15 -2.63 -2.94 -3.34 3151
…
i am new to learning C language .
I have shifted from C++ and was implementing the while and do while loop
The following is a snippet from my code . This works fine in C++ but in C after executing while loop once it executes scanf first and then…
THAT'S REALLY INTERESTING
wrong code
#include
int main( )
{
char another;
int num;
do
{
printf("Enter a number: ");
scanf("%d", &num);
printf("\nWant to enter another number y/n ");
…
Quick follow-up question on my previous question. I'd like to add the code to the following to calculate the factorial of a number entered by user in Javascript.
Sum of Numbers