Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
रिक्त स्थान छिपाएँ
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
टेक्स्ट शैलियां
दिखावट बदलें
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
java_code
बनाया गया
6 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
37 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
22 लाइनें
सभी को कॉपी करें
37 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
23 लाइनें
सभी को कॉपी करें
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
import java.util.*;
import java.util.*;
public class Main
{
public class Main
public static void main(String[] args)
{
{
Scanner sc = new Scanner(System.in);
public static void main(String[] args)
System.out.println("Input the radius of coin");
{
double rad = sc.nextDouble();
Scanner sc = new Scanner(System.in);
System.out.println("Input the thickness of coin");
System.out.println("Input the radius of coin");
double thick = sc.nextDouble();
double rad = sc.nextDouble();
System.out.println("Input the target distance of coin");
System.out.println("Input the target distance of coin");
double dist = sc.nextDouble();
double dist = sc.nextDouble();
double no_of_blocks
= 0;
double length
= 2 *
rad;
double no_of_blocks
=0.0;
double curr_length=0.0;
double length
=2*
rad;
double n=1
;
double curr_length=0.0;
while(curr_length
<
dist)
{
double n=1
.0;
no_of_blocks+
=1;
while(curr_length
<
dist)
{
curr_length = curr_length + (length*(1/(2*n)));
no_of_blocks+
+;
n+=1;
curr_length = curr_length + (length*(1/(2*n)));
}
n++;
System.out.println("Number
of blocks required are
: " +
no_of_blocks);
}
}
System.out.printf("NO
of blocks required are
%d" , (int)
no_of_blocks);
}
}
}
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Input the radius of coin"); double rad = sc.nextDouble(); System.out.println("Input the thickness of coin"); double thick = sc.nextDouble(); System.out.println("Input the target distance of coin"); double dist = sc.nextDouble(); double no_of_blocks = 0; double length = 2 * rad; double curr_length=0.0; double n=1; while(curr_length < dist) { no_of_blocks+=1; curr_length = curr_length + (length*(1/(2*n))); n+=1; } System.out.println("Number of blocks required are: " + no_of_blocks); } }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Input the radius of coin"); double rad = sc.nextDouble(); System.out.println("Input the target distance of coin"); double dist = sc.nextDouble(); double no_of_blocks=0.0; double length=2*rad; double curr_length=0.0; double n=1.0; while(curr_length<dist){ no_of_blocks++; curr_length = curr_length + (length*(1/(2*n))); n++; } System.out.printf("NO of blocks required are %d" , (int)no_of_blocks); } }
अंतर खोजें