Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Ba_1179_ylau_esepter_69_-_zhauaptar.docx
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
93.41 Кб
Скачать

Бақылау есептері

  1. 100-ге дейінгі жұп оң сандардың қосындысын табу керек.

#include <stdio.h>

#include <math.h>

#include <conio.h>

void main ()

{ clrscr();

int s,x; s=0;

for (x=2;x<100;x+=2) { s=s+x;}

printf ("s=%i",s);

getch ();}

  1. 200-ге дейінгі 3-ке қалдықсыз бөлінетін бүтін сандардың қосындысын табу керек.

#include <stdio.h>

#include <math.h>

#include <conio.h>

void main ()

{ clrscr();

int s,x; s=0;

for (x=1;x<200;x++) {

if(x%3==0) s=s+x;}

printf ("s=%i",s);

getch ();}

  1. 4. 20-дан үлкен және 100-ден кіші 3-ке қалдықсыз бөлінетін оң сандардың қосындысын табу керек.

#include <stdio.h>

#include <math.h>

#include <conio.h>

void main ()

{ clrscr();

int s,x; s=0;

for (x=0;x<100;x++) {

if(x>4.20 && x%3==0) s=s+x; }

printf ("s=%i\t",s);

getch ();}

  1. 5. 200-ге дейінгі 15-ке қалдықсыз бөлінетін бүтін сандардың қосындысын табу керек.

#include <stdio.h>

#include <math.h>

#include <conio.h>

void main ()

{ clrscr();

int s,x; s=0;

for (x=5;x<200;x++) {

if( x%15==0) s=s+x;}

printf ("s=%i\t",s);

getch ();}

  1. 1-ден 30 дюймге дейінгі өлшем бірліктерін миллиметрге айналдыратын программа жаса(1 дюймде 25,3995 мм бар).

#include <stdio.h>

#include <math.h>

#include <conio.h>

void main ()

{ clrscr();

int x,n;

float s=0;

printf("30-ga deiyngy san engyz: ");

scanf("%i",&n);

for (x=0;x<=n;x++) { s=x*25.3995;}

printf ("\n%i diumde=%f mm bar\n",n,s);

getch ();}

  1. 100-ге дейінгі жұп оң сандардың қосындысын табу керек.

#include <stdio.h>

#include <math.h>

#include <conio.h>

void main ()

{ clrscr();

int s,x; s=0;

for (x=2;x<100;x+=2) { s=s+x;}

printf ("s=%i",s);

getch ();}

  1. Төмендегі қосындыны есептеңіз:

#include <stdio.h>

#include <math.h>

#include <conio.h>

#define pi 3.1415926

void main ()

{ clrscr();

int x,n,i;

float s;

printf("x, n manderyn engyz: ");

scanf("%d%d",&x,&n); s=0;

for (i=0;i<=n;i++) { s=s+pow(x,i)*sin(i*(pi/4.0));}

printf ("\ns=%6.3f\n",s);

getch ();}

  1. Төмендегі функция мәндерін х мәні х0-ден хk-ға дейін белгілі бір қадаммен өзгерген кезде анықтау керек:

#include <stdio.h>

#include <math.h>

#include <conio.h>

#define pi 3.1415926

Void main ()

{ clrscr();

int x,i;

float y;

printf("x manyn engyz: ");

scanf("%d",&x); y=0;

for (i=0;i<=x;i++) { y=y+5*pow(sin(i),2)+pow(3*pow(i,5)+5,1/3.0);}

printf ("\ny=%6.3f\n",y);

getch ();}

  1. Төмендегі функциялар мәндерін х мәні х0-ден хk-ға дейін белгілі бір қадаммен өзгерген кезде анықтау керек:

#include <stdio.h>

#include <math.h>

#include <conio.h>

#define e 2.7864513246

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]