Advertisement
frentzy

Ticleanu lab 2 Q_Q avem si tema....

Oct 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. //#define VARSTA 29
  5. //#define SCRIE(n) printf("\n%f",n)
  6.  
  7. int main()
  8. {
  9. //int a,b,c;
  10. //float x1, x2, y1, y2;
  11. /*printf("introduceti variabile pentru A(x1,x2)");
  12. printf("\nx1= ");
  13. scanf_s("%f", &x1);
  14. printf("x2= ");
  15. scanf_s("%f", &x2);
  16. printf("A=(%.2f,%.2f)", x1, x2);
  17.  
  18. printf("\nintroduceti variabile pentru B(y1,y2)");
  19. printf("\ny1= ");
  20. scanf_s("%f", &y1);
  21. printf("y2= ");
  22. scanf_s("%f", &y2);0
  23. printf("B=(%.2f,%.2f)", y1, y2);
  24. */
  25. //printf("a= ");
  26. //scanf_s("%d", &a);
  27.  
  28. // printf("Folosim &");
  29. //scanf_s("%d", &b);
  30. //c = a&b;
  31. //printf("Dupa negare c=%d ", c);
  32. //c = sizeof(int);
  33. /*printf("\nc= %d", c);
  34.  
  35. printf("\nFolosim |");
  36. scanf_s("%d", &b);
  37. c = a | 3;
  38. printf("\nc= %d", c);
  39.  
  40. printf("\nFolosim ^");
  41. scanf_s("%d", &b);
  42. c = a ^ 3;
  43. printf("\nc= %d", c);
  44.  
  45. printf("\nFolosim ~");
  46. c = ~a;
  47. printf("\nc= %d", c);
  48. */
  49. int d, z;
  50. scanf_s("%d", &d);
  51. scanf_s("%d", &z);
  52. printf("Maximul este %d", (d > z) ? d : z);
  53.  
  54.  
  55.  
  56. //sqrt((x2-x1)^2-(y2-y1)^2).
  57.  
  58. _getch();
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement