Untitled

Run Settings
LanguageC
Language Version
Run Command
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <Windows.h> int main() { float x, y, xmin, xmax, dx, a, b; do { printf_s("Enter b: "); scanf_s("%f", &b); printf_s("Enter a: "); scanf_s("%f", &a); printf_s("\nEnter xmin, which's less than Xmax: "); scanf_s("%f", &xmin); printf_s("\nEnter xmax, which's more than Xmin: "); scanf_s("%f",&xmax); printf_s("\nEnter dx, which is less than Xmax, but more than Xmin: "); scanf_s("%f", &dx); printf_s("Enter x"); scanf_s("%f", &x); printf_s("Enter y"); scanf_s("%f", &y); printf_s("__________________________________________________________"); if (b != 0) { for (x = xmin; x <= xmax; x += dx) { y = 2 * atan((25 * a) / b) + 3 * pow(cos((9 * x*b) / (b - x)), 2); printf_s("\n%6.2f\n", y); system("pause"); } } } while (xmin < dx|| dx < xmax); printf_s("Enter valid identificators"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines