Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- //#define VARSTA 29
- //#define SCRIE(n) printf("\n%f",n)
- int main()
- {
- //int a,b,c;
- //float x1, x2, y1, y2;
- /*printf("introduceti variabile pentru A(x1,x2)");
- printf("\nx1= ");
- scanf_s("%f", &x1);
- printf("x2= ");
- scanf_s("%f", &x2);
- printf("A=(%.2f,%.2f)", x1, x2);
- printf("\nintroduceti variabile pentru B(y1,y2)");
- printf("\ny1= ");
- scanf_s("%f", &y1);
- printf("y2= ");
- scanf_s("%f", &y2);0
- printf("B=(%.2f,%.2f)", y1, y2);
- */
- //printf("a= ");
- //scanf_s("%d", &a);
- // printf("Folosim &");
- //scanf_s("%d", &b);
- //c = a&b;
- //printf("Dupa negare c=%d ", c);
- //c = sizeof(int);
- /*printf("\nc= %d", c);
- printf("\nFolosim |");
- scanf_s("%d", &b);
- c = a | 3;
- printf("\nc= %d", c);
- printf("\nFolosim ^");
- scanf_s("%d", &b);
- c = a ^ 3;
- printf("\nc= %d", c);
- printf("\nFolosim ~");
- c = ~a;
- printf("\nc= %d", c);
- */
- int d, z;
- scanf_s("%d", &d);
- scanf_s("%d", &z);
- printf("Maximul este %d", (d > z) ? d : z);
- //sqrt((x2-x1)^2-(y2-y1)^2).
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement