Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
रिक्त स्थान छिपाएँ
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
टेक्स्ट शैलियां
दिखावट बदलें
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
91212
बनाया गया
4 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
6 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
37 लाइनें
सभी को कॉपी करें
4 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
35 लाइनें
सभी को कॉपी करें
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
struct coordinate
struct coordinate
{
{
double x_point;
double x_point;
double y_point;
double y_point;
};
};
struct coordinate linkingpoint;
struct coordinate linkingpoint;
int main()
int main()
{
{
int number;
int number;
scanf("%d", &number);
scanf("%d", &number);
double area;
double area;
double result = 0;
double result = 0;
struct coordinate * all_point = malloc(number*sizeof(struct coordinate));
struct coordinate * all_point = malloc(number*sizeof(struct coordinate));
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
for (int i = 0; i < number; i++)
for (int i = 0; i < number; i++)
{
{
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
scanf("%
f %
f", &all_point[i].x_point, &all_point[i].y_point);
scanf("%
l
f %
l
f", &all_point[i].x_point, &all_point[i].y_point);
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
linkingpoint = all_point[0];
linkingpoint = all_point[0];
for (int i = 1; i < number - 1; i++)
for (int i = 1; i < number - 1; i++)
{
{
area = ((all_point[i].x_point - linkingpoint.x_point) * (all_point[i + 1].y_point - linkingpoint.y_point)) - ((all_point[i].y_point - linkingpoint.y_point)*(all_point[i + 1].x_point - linkingpoint.x_point));
area = ((all_point[i].x_point - linkingpoint.x_point) * (all_point[i + 1].y_point - linkingpoint.y_point)) - ((all_point[i].y_point - linkingpoint.y_point)*(all_point[i + 1].x_point - linkingpoint.x_point));
result += area / 2;
result += area / 2;
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
long double result2;
if (result < 0)
if (result < 0)
result *= -1;
result *= -1;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
result2 = (long double)result;
printf("%.1
l
f", result
);
printf("%.1
L
f", result
2
);
}
}
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
#include <stdio.h> #include <stdlib.h> struct coordinate { double x_point; double y_point; }; struct coordinate linkingpoint; int main() { int number; scanf("%d", &number); double area; double result = 0; struct coordinate * all_point = malloc(number*sizeof(struct coordinate)); // for (int i = 0; i < number; i++) { scanf("%f %f", &all_point[i].x_point, &all_point[i].y_point); } linkingpoint = all_point[0]; for (int i = 1; i < number - 1; i++) { area = ((all_point[i].x_point - linkingpoint.x_point) * (all_point[i + 1].y_point - linkingpoint.y_point)) - ((all_point[i].y_point - linkingpoint.y_point)*(all_point[i + 1].x_point - linkingpoint.x_point)); result += area / 2; } long double result2; if (result < 0) result *= -1; result2 = (long double)result; printf("%.1Lf", result2); }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
#include <stdio.h> #include <stdlib.h> struct coordinate { double x_point; double y_point; }; struct coordinate linkingpoint; int main() { int number; scanf("%d", &number); double area; double result = 0; struct coordinate * all_point = malloc(number*sizeof(struct coordinate)); for (int i = 0; i < number; i++) { scanf("%lf %lf", &all_point[i].x_point, &all_point[i].y_point); } linkingpoint = all_point[0]; for (int i = 1; i < number - 1; i++) { area = ((all_point[i].x_point - linkingpoint.x_point) * (all_point[i + 1].y_point - linkingpoint.y_point)) - ((all_point[i].y_point - linkingpoint.y_point)*(all_point[i + 1].x_point - linkingpoint.x_point)); result += area / 2; } if (result < 0) result *= -1; printf("%.1lf", result); }
अंतर खोजें