Відповідь:
С++ code:
#include <iostream>
#include <cmath>
int main(){
setlocale(LC_ALL, "Ukrainian");
float a = -1,b = 3,h = 0.4;
for(a; a <= b; a += h){
std::cout << "x = " << a << "\ty(x) = " << sqrt(a + 2) - sqrt(a + 3) << std::endl;;
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Відповідь:
С++ code:
#include <iostream>
#include <cmath>
int main(){
setlocale(LC_ALL, "Ukrainian");
float a = -1,b = 3,h = 0.4;
for(a; a <= b; a += h){
std::cout << "x = " << a << "\ty(x) = " << sqrt(a + 2) - sqrt(a + 3) << std::endl;;
}
return 0;
}