Last active
October 5, 2015 05:37
-
-
Save raziyeaydin/2757395 to your computer and use it in GitHub Desktop.
struct yapısıyla uzaydaki iki ya da üç noktadan yararlanarak oluşacak dikdörtgenin alanını hesaplama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
struct point{ | |
int x,y; | |
}; | |
struct point p1,p2; | |
int alan; | |
p1.x=2; | |
p1.y=6; | |
p2.x=5; | |
p2.y=2; | |
alan=(p1.y-p2.y)*(p2.x-p1.x); | |
printf("%d",alan); | |
getch();} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment