igor

Run Settings
LanguageC
Language Version
Run Command
#include <wchar.h> #include <stdio.h> #include <math.h> int main(){ float x,y,xmin,xmax,dx,a,b; printf("Input b: "); scanf("%f", &b); do { printf("Input a: "); scanf("%f", &a); } while (a < 0); do { printf("Input xmin < xmax"); scanf("%f%f", &xmin, &xmax); } while (xmin <= xmax); do { printf("Input dx: "); scanf("%f", &dx); } while (dx >= 0 || dx > (xmax - xmin)); printf("____x\ty\n"); scanf("**********\n"); x = xmin; while (x <= xmax) { printf("%6.2f\t",x); if (x != 0) { y = 2 * atan((25 * a) / b) + 3 * pow(cos((9 * x*b) / (b - x)), 2); printf("%6.2f\n", y); } else printf("error\n"); x = x + dx; } system("pause"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines