Bajardi: Ikromov Akobir
Download 234.68 Kb.
|
AKosh coding2
TOSHKENT AXBOROT TEXNALOGİYALARİ UNİVERSİTETİ Dasturlash fanidan Amaliy ish 2 BAJARDI:Ikromov Akobir 1-misol
using namespace std; int main() {double x,y,a=M_PI/4,b=M_PI,n=10,h; x=a; h=(b-a)/n; while(x<=b) { y=cos(1./x); cout<<"x= "< } return 0; } 2-misol
b)#include #include using namespace std; int main() {float n,s=0; for(int R=1;R<=9;R++) { s=s+(R+1)/(pow(R,5)+5*R+1.2); } cout<<"S= "< } a)#include #include using namespace std; int main() {float s=1; for(int n=1;n<=10;i++) { s*=(pow(i,4)+i*i+12)/sqrt(i*i*i+exp(-i)); } cout<<"S= "< } c)
#include using namespace std; int main() {float s=0; for(int i=1;i<=15;i++) {int p=1; for(int m=1;m<=11;m++) { s=s+exp(sqrt(i*i+pow(m,(1-i))))+(i*i+11)/(pow(m,4)+pow(i,-m)); s=s+p; } } cout<<"S= "< Download 234.68 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling