Комментарии:
from math import pi
r=float(input())
ans=2*pi*r
v=round(ans,2)
print(v)
n1=int(input())
n2=int(input())
n3=int(input())
list=[n1,n2,n3]
list.sort()
print(list[1])
For (Q2)
For Folks doing in java,
While printing the output in 2 precision, simply write , System.out.printf("%.2f",circumference)
For (Q1), in java, we can store the numbers in an array and sort them (Ascending Order) and then simply print the last second number, which is our required answer...
Time Complexity: O(n log n)
Hope it helps...
Please guys No need to take Radius as a float
It gives error or wrong ans !!!!!!!
Else if (n2 >n3) k jagah pr (n1>n3) hoga,
ОтветитьBut this is very easy
Ответитьis this coding of Q1 holds good for 132
Ответитьsecond greatest more simplified
________________________
import java.util.*;
import java.io.*;
import java.util.Scanner;
public class Main{
public static void main (String[]args)
{
Scanner s = new Scanner (System.in);
int a = s.nextInt (), b = s.nextInt (), c = s.nextInt ();
if (((a > b) && (a < c)) || ((a > c) && (a < b)))
System.out.println (a);
else
System.out.println ((((b > c) && (b < a)) || ((b > a) && (b < c))) ? b : c);
}}
where to practice coding questions for tcs nqt.can u plz suggest any website.
Ответитьas shown in the video questions will be in the direct manner like that or matter will be given.
ОтветитьSir can you say in c++
ОтветитьCan we use priority queue in this?
ОтветитьSir 2nd largest no question is 30 marks or 15 marks??
Ответитьcan we use only python lang for coding in TCS ninja
ОтветитьAre these pyqs😳?
ОтветитьSir what is salary package does tcs Ninja provide?
ОтветитьSir, can you pls tell me can I use pre defined functions(e.g. Max, Min, Factorial) of Python in the exam ?
ОтветитьThank you for this type of videos. Want more of prev year question of TCS Ninja exam.
ОтветитьSir can I write program in python in tcs ninja bcz all r saying python compiler sucks
ОтветитьWill they ask such easy programs ? they will only ask tougher programs know?
ОтветитьItna easy ayega ?
ОтветитьIf any two inputs are equal. then the code is not possible
ОтветитьThank you sir
Please upload more videos
A=[2,8,5]
A.sort()
Print(a[1])
Just 3 lines but it will have a time complexity of i guess O(n)
i think its not working
ОтветитьIs python available???
ОтветитьWhat about java
ОтветитьCan we write the same in python sir???
Ответить