Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
346 B
2
Indexable
Never
#include <iostream>

int main()
{
    float a = 50;
    float b = 1000;
    int n1 = 100;
    int n2 = 2000;
    int v1 = 0;
    int v2 = 1;
    float step = a/n1;
    for (int i = 0; i <= n2; i++){
        for (int j = 0; j <= n1; j++){
            printf("%f %f %d %d \n",i*step,j*step,v1,v2);
        }
    }
    return 0;
}