Wipro
Company
Programming
Program
1*2*3*4*5
11*12*13*14*15
21*22*23*24*25
16*17*18*19*20
6*7*8*9*10
Read Solution (Total 31)
-
- public class Main {
public static void main(String[] args) {
// write your code here
int row,col,lim,nl,ev,od,a;
lim=25;
nl=5;
a=0;
od= (lim/nl)/2;
ev= (lim/nl) - od;
//Printing the first row to the middle row
for(row=0;row - 6 years agoHelpfull: Yes(61) No(27)
- #include
void main()
{
int n=25;
int a[25],i,j,k,count1,count2;
for(i=0;i - 7 years agoHelpfull: Yes(24) No(34)
- import java.util.*;
public class Main
{
public static void main(String[] args)
{
int n=0,c=1,e=0;
Scanner scan = new Scanner(System.in);
System.out.println("enter the no of rows(should be odd no.)");
n=scan.nextInt();
for(int i=1;i - 6 years agoHelpfull: Yes(17) No(10)
- #include
int main()
{
int row;
printf("Enter rows of pattern to printn");
scanf("%d",&row);
int arr[20][20];
int count=1;int lb=0;int ub=row-1;
while(count!=(row*row))
{
int point=lb;
for(int i=0;irow*row)
break;
point=ub;
for(int i=0;i - 6 years agoHelpfull: Yes(14) No(16)
- class Wipro{
public static void main(String[] abc) {
int arr[][]= {{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,15},{16,17,18,19,20},{21,22,23,24,25}};
int a=2;
int b=4;
int c=1;
for(int i=0;i - 6 years agoHelpfull: Yes(7) No(9)
- #include
void main()
{
int n,i,j,k;
printf("number");
scanf("%d",&n);
for(i =0;i - 6 years agoHelpfull: Yes(5) No(0)
- 26*27*28*29*30
- 7 years agoHelpfull: Yes(4) No(8)
- import java.util.Arrays;
public class RandomExample {
public static void main(String[] args) {
int [][] a = new int[5][5];
int resetValueOfi=0;
int countNum=1;
int keepCount=0;
int rowJump=2;
outer:
for(int i=resetValueOfi;i - 6 years agoHelpfull: Yes(3) No(5)
- //python
n = int(input())
for i in range(3):
for j in range(1,n+1):
if j != n:
print(n*2*i + j ,end = "*");
else:
print(n*2*i + j ,end = "");
print()
for i in range(2,0,-1):
for j in range(1,n+1):
if j !=n:
print(n*(2*i-1) + j , end = "*")
else:
print(n*(2*i-1) + j , end = "")
print() - 6 years agoHelpfull: Yes(3) No(0)
- Can anyone please send me this code to my email id-svaishnavihpt@gmail.com
- 6 years agoHelpfull: Yes(1) No(3)
- #include
int main()
{
int i,j,k,a=0,j1,p;
for(i=1;i - 6 years agoHelpfull: Yes(1) No(4)
- #include
using namespace std;
int main()
{
int n;
coutn;
int p=n;
if(n>=1 && n - 5 years agoHelpfull: Yes(1) No(0)
- Can anyone please send me the previous placement paper of work to nidhidubeyjk@gmail.com
- 6 years agoHelpfull: Yes(0) No(4)
- #include
main(){
int i,j;
for(i=0; i - 6 years agoHelpfull: Yes(0) No(4)
- import java.io.*;
class Pattern
{
public static void main(String[] args)
{
int i;
int N=5;
for(i=0; i0; i-=2)
System.out.printf("%d*%d*%d*%dn", (4*i+1), (4*i+2), (4*i+3), (4*i+4));
}
} - 6 years agoHelpfull: Yes(0) No(7)
- #include
#define n 5
int main(void) {
int i,j,count,k,sum;
for(i=0;i - 6 years agoHelpfull: Yes(0) No(2)
- #include
using namespace std;
int main()
{
int i,j,k=1;
for(i=1;i - 6 years agoHelpfull: Yes(0) No(3)
- class pattern
{
public static void main(String[]args)
{
int i;
for(i=1;i - 6 years agoHelpfull: Yes(0) No(2)
- #include
using namespace std;
int main()
{
int n;
coutn;
int p=n;
if(n>=1 && n - 6 years agoHelpfull: Yes(0) No(0)
- 26*27*28*29*30
the continuous number can be multiple then it can be split in half of them - 6 years agoHelpfull: Yes(0) No(0)
- #include
int main()
{
int x=0,y,i,d=6,j;
for(i=0;i - 6 years agoHelpfull: Yes(0) No(1)
- import java.util.*;
import java.util.Scanner;
public class patternWipro
{
public static void main(String abc[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter the size of row:");
int n=sc.nextInt();
int x=1,y=(n*(n*2)-(n-1));
for(int i=1;i - 6 years agoHelpfull: Yes(0) No(1)
- for i in range(1,26):
print(i,end="")
if(i%5==0):
print("n")
else:
print("*",end="") - 6 years agoHelpfull: Yes(0) No(0)
- import java.util.*;
public class pattern {
public static void main(String [] args) {
Scanner scan=new Scanner(System.in);
System.out.println("Enter a number");
int n=scan.nextInt();
printPatt(n);
}
public static void printPatt(int n) {
int c=0;
for(int i=0;i - 5 years agoHelpfull: Yes(0) No(2)
- import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Main testClass = new Main();
int n;
System.out.println("Enter the value of N :");
Scanner in = new Scanner(System.in);
n = in.nextInt();
System.out.println("N : "+n);
testClass.printPattern(n);
}
private void printPattern(int num) {
int row=1,i=1,count =1;
String s ="";
//while( (row>0) | (count0)|(num>=count);) {
if(count=count);) {
if(count - 5 years agoHelpfull: Yes(0) No(0)
- public static void printPattern(int n)
{
// Write your code here
int p=n;
if(n>=1 && n - 5 years agoHelpfull: Yes(0) No(0)
- for(i=0;i
- 5 years agoHelpfull: Yes(0) No(0)
- n = int(input())
for i in range(n):
if(2*i < n):
k = n *(2*i)+1
j = 1
while(j - 5 years agoHelpfull: Yes(0) No(0)
- //python
n=int(input())
for i in range(n):
if(i%2 == 0):
for j in range(n*i+1,n*i+1+n):
print(j, end =" ")
print()
for i in range(n-1,0,-1):
if(i%2 != 0):
for j in range(n*i+1,n*i+1+n):
print(j, end =" ")
print() - 4 years agoHelpfull: Yes(0) No(0)
- i dont know the bloody answer
- 3 years agoHelpfull: Yes(0) No(0)
- 12345
1112131415
2122232425
1617181920
678910
that is
12345 for top then 678910
and then forward of 10 upto 5 no ahead
and follow above pattern - 2 years agoHelpfull: Yes(0) No(0)
Wipro Other Question