allcoding1_official
106K subscribers
766 photos
2 videos
73 files
759 links
Download Telegram
Wipro
import java.util.Scanner;

public class ChangeCase {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char c = scanner.next().charAt(0);

if (Character.isLowerCase(c)) {
System.out.println(Character.toUpperCase(c));
} else {
System.out.println(Character.toLowerCase(c));
}

scanner.close();
}
}
👍4❤‍🔥1
#include<stdio.h>

int main() {
int n;
scanf("%d", &n);

char str[n + 1];
scanf("%s", str);

int count = 0;
char thirdLastConsonant;

for(int i = n - 1; i >= 0; i--) {
if (str[i] != 'a' && str[i] != 'e' && str[i] != 'i' && str[i] != 'o' && str[i] != 'u' &&
str[i] != 'A' && str[i] != 'E' && str[i] != 'I' && str[i] != 'O' && str[i] != 'U') {
count++;
if (count == 3) {
thirdLastConsonant = str[i];
break;
}
}
}

printf("%c\n", thirdLastConsonant);
return 0;
}
👍3
5.B
6.D
7.C
Wipro
20
DVI
Amazon is hiring Application Engineer

For 2021, 2022, 2023 grads

Location : Chennai

Apply now :
https://www.amazon.jobs/en/jobs/2736775/application-engineer-amazon?cmpid=SPLICX0248M&ss=paid
👍1
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);


int L1 = scanner.nextInt();
int R1 = scanner.nextInt();
int L2 = scanner.nextInt();
int R2 = scanner.nextInt();


int maxProduct = Integer.MIN_VALUE;

for (int a = L1; a <= R1; a++) {
for (int b = L2; b <= R2; b++) {
maxProduct = Math.max(maxProduct, a * b);
}
}


System.out.println(maxProduct);
}
}
👍2
def sum_of_divisors(n):
sum_div = 0
for i in range(1, int(n**0.5) + 1):
if n % i == 0:
sum_div += i
if i != n // i:
sum_div += n // i
return sum_div

# Read the input integer
n = int(input())

# Calculate and print the sum of divisors
print(sum_of_divisors(n))

Python
👍1
Wipro Elite is hiring

Apply (if your college is eligible)

2023 & 2024 Batch students are eligible
Branch : BE/B.TECH/ME/M.TECH
Percentage criteria: 60% Throughout

Apply link :- https://app.joinsuperset.com/join/#/signup/student?jp=fd4be287-c8d5-4ace-ac26-6875ca63bc34