Căutarea a găsit 14 rezultate

P3

#include<xc.h> __PROG_CONFIG(1,0x3FE4); __PROG_CONFIG(2,0x1EFF); #define _XTAL_FREQ 16000000 #define LED_1 RB1 #define LED_2 RB2 #define LED_3 RB3 void init_uC (void); void main (void) { init_uC(); while(1) { if(RB0==0) { __delay_ms(800); if(RB0==1) LED_1=1; else { __delay_ms(1000); if(RB0=1) LED_2=...

P2

#include <xc.h> __PROG_CONFIG(1,0x3FE4); unsigned int a; unsigned long b; void init_uC(void); void main(void) { init_uC(); while (1) { for(a=0x20;a<=0x80;a<<=1) { PORTB=a; for(b=0;b<10000;b++); } RB7=0; for(a=0x04;a<0x10;a<<=1) { PORTD=a; for(b=0;b<10000;b++); } for(a=0x20;a<0x80;a<<=1) { PORTD=a; f...

P1

#include<xc.h>
#define LED1 RB2
#define LED2 RE2

unsigned long y;
void main(void)

{
TRISE=0x00;
ANSELE=0x00;
TRISB=0x00;
ANSELB=0x00;

while(1)
{
for(y=0;y<10000;y++)
{
LED1=1;
LED2=0;
}
for(y=0;y<10000;y++)
{
LED1=0;
LED2=1;
}}}

ec gr 2

#include<stdio.h> #include<stdlib.h> #include<math.h> int main (void) { int m,n; double a,b,c; char k1,k2,k3; printf("introduceti 2 numere intregi\n"); if(scanf("%d %d", &m, &n)!=2) { printf("DE"); exit(1); } printf("introduceti 3 numere reale\n"); if(scanf("%lf %lf %lf", &a,&b,&c)!=3) { printf("DE"...

an bisect

#include<stdio.h> #include<stdlib.h> int main (void) { int a,b,c; float m,n; char k,w; printf("introduceti 3 numere intregi:\n"); if(scanf("%d %d %d", &a, &b, &c)!=3) { printf("DE"); exit(1); } printf("introduceti 2 numere reale\n"); if(scanf("%f %f",&m, &n)!=2) { printf("DE"); exit(1); } printf("in...

32

#include<stdlib.h> #include<stdio.h> #include<math.h> int main(void) { double x,y,z; int a,b,c; char c1,c2; printf("introduceti 3 valori reale\n"); if(scanf("%lf %lf %lf", &x, &y, &z)!=3) { printf("date eronate"); exit(1); } printf("introduceti 3 nr intregi\n"); if(scanf("%d %d %d", &a,&b,&c)!=3) { ...

29

#include<stdio.h> #include<stdlib.h> #include<math.h> int main (void) { int m,n; double a,b,c; char k1,k2,k3; printf("introduceti 2 numere intregi\n"); if(scanf("%d %d", &m, &n)!=2) { printf("DE"); exit(1); } printf("introduceti 3 numere reale\n"); if(scanf("%lf %lf %lf", &a,&b,&c)!=3) { printf("DE"...

27

#include<stdlib.h> #include<stdio.h> #include<math.h> int main(void) { int a,b,c; double x,y; char k1,k2,k3; printf("introduceti 3 valori intregi\n"); if(scanf("%d %d %d", &a, &b, &c)!=3) { printf("de"); exit(1); } printf("introduceti 2 valori reale\n"); if(scanf("%lf %lf",&x, &y)!=2) { printf("de")...

28

#include<stdio.h> #include<stdlib.h> #include<math.h> int main (void) { int a,b,c,l; double m,n,E4; char k,w; printf("Introduceti 3 valori intregi:\n"); if(scanf("%d %d %d", &a, &b, &c)!=3) { printf("DE"); exit(1); } printf ("Introduceti 2 numere reale:\n"); if(scanf("%lf %lf", &m,&n)!=2) { printf("...

25

#include<stdio.h> #include<stdlib.h> #include<math.h> int main(void) { double x,y; int a,b,c; char car1,car2; printf("introduceti 2 numere reale\n"); if(scanf("%lf %lf",&x,&y)!=2) { printf("DE"); exit(1); } printf("introduceti 3 numere intregi\n"); if(scanf("%d %d %d",&a, &b, &c)!=3) { printf("DE");...

Mergeți la căutare avansată

cron