Wipro
Company
Programming
Program
1
3 2
4 5 6
10 9 8 7
Read Solution (Total 34)
-
- #include
int main()
{
int i,j,l,t;
j=0;
for(i=1;i - 9 years agoHelpfull: Yes(42) No(25)
- /* Author- NAVPREET SINGH DHUNNA */
#include
#include
void main()
{
int i,j,l,k=3,in,m=3,n=4,o,p=3;
scanf("%d",&in);
for(i=1;i - 9 years agoHelpfull: Yes(11) No(16)
- /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
int x = 1;
for(int i=1;i - 9 years agoHelpfull: Yes(7) No(6)
- #include
void main()
{
int i,j,n,temp,var=0;
printf("Enter n: ");
scanf("%d", &n);
for(i=0;i - 7 years agoHelpfull: Yes(7) No(2)
- import java.util.*;
/*
1
32
456
10987
*/
class pattern_2
{
public static void main(String args[])
{int y=0,count=0;
Scanner scn=new Scanner(System.in);
System.out.println("Enter no. of rows to be print:");
int rows=scn.nextInt();
System.out.println("----------------------------");
for(int i=1;i - 8 years agoHelpfull: Yes(4) No(9)
- public class pattern {
public static void main(String[] args) {
// TODO Auto-generated method stub
int i=1;
System.out.println(+(i));
System.out.println(+(i+2)+" "+(i+1));
System.out.println((i+3)+ " " +(i+4)+ " " +(i+5));
System.out.println((i+9)+ " "+(i+8)+ " "+(i+7)+ " "+(i+6));
}
} - 8 years agoHelpfull: Yes(3) No(5)
- #include
#include
#include
using namespace std;
int main(){
int i,j,n,k,l;
cin>>n;
k=1;
for(i=1;i - 7 years agoHelpfull: Yes(3) No(2)
- #include
int main()
{
int n,i,j,t,s;
printf("Enter number of lines=");
scanf("%d",&n);
t=1;
for (i=1;i - 7 years agoHelpfull: Yes(3) No(1)
- #include
#include
int main(){
int m=1,k=0;
for(int i=1;i - 7 years agoHelpfull: Yes(2) No(0)
- he is asking for program to draw pattern
- 9 years agoHelpfull: Yes(1) No(3)
- 11 12 13 14 15
- 9 years agoHelpfull: Yes(0) No(4)
- 11 12 13 14 15
- 9 years agoHelpfull: Yes(0) No(2)
- 11,12,13,14,15
- 9 years agoHelpfull: Yes(0) No(4)
- /* Author- NAVPREET SINGH DHUNNA */
#include
#include
void main()
{
int i,j,l,k=3,in,m=3,n=4,o,p=3;
scanf("%d",&in);
for(i=1;i - 9 years agoHelpfull: Yes(0) No(11)
- import java.util.*;
class pattern_2
{
public static void main(String args[])
{int y=0,count=0;
Scanner scn=new Scanner(System.in);
System.out.println("Enter no. of rows to be print:");
int rows=scn.nextInt();
System.out.println("----------------------------");
for(int i=1;i - 8 years agoHelpfull: Yes(0) No(5)
- public class Pattern1 {
public static void main(String[]args){
int i,j,count=1;
for(i=0;i=0;j--){
if(i%2==0) System.out.print(count++ +" ");
else System.out.print(count+j + " ");
}
if(i%2!=0) count=count+i+1;
System.out.println();
}
}
} - 7 years agoHelpfull: Yes(0) No(1)
- import java.io.*;
import java.net.*;
public class Pattern {
public static void main(String[] args){
PrintPat(9);
}
public static void PrintPat(int a)
{ int last=0;
for(int i=1;i0;l--)
{
System.out.print(j--);
if(l>1)
System.out.print(" ");
}
System.out.println();
}
}} - 7 years agoHelpfull: Yes(0) No(1)
- #include
void main() {
int i,k,no=1,count=1,cno=1;
for (i=1; i - 7 years agoHelpfull: Yes(0) No(0)
- for(j=1;j
- 7 years agoHelpfull: Yes(0) No(0)
- import java.util.Scanner;
public class pattern {
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int n1=1;
for(int i=1;i - 7 years agoHelpfull: Yes(0) No(0)
- public class Demo {
public static void main(String[] args){
int a = 0;
for(int i = 1 ; i - 6 years agoHelpfull: Yes(0) No(0)
- madarchod sab gawar h yahan
- 6 years agoHelpfull: Yes(0) No(0)
- This answer is perfect.
#include
using namespace std;
int main()
{
int n,i,j,k,l=0,temp=0;
cin>>n;
//count =
for(i=1;i0;j--)
cout - 6 years agoHelpfull: Yes(0) No(0)
- import java.io.*;
class p7
{
public static void main(String arg[]) throws IOException
{
int i,j,n,c=0,k=0;
BufferedReader t=new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter the required number of rows");
n=Integer.parseInt(t.readLine());
for(i=1;i - 6 years agoHelpfull: Yes(0) No(0)
- #include
int main()
{
int i,j,k,no,n,s=1,num=1,l;
l=num;
printf("Enter rows:");
scanf("%d",&no);
n=no;
for(i=1;i - 6 years agoHelpfull: Yes(0) No(1)
- Solution by using just a single Loop...
public class ZicZac {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter the limit(Total number of Lines) : ");
int lineLimit = scanner.nextInt();
int num = 1;
int lineCounter = 1;
int numCounter = 0;
while (true) {
if (numCounter lineLimit) {
break;
}
}
}
} - 6 years agoHelpfull: Yes(0) No(0)
- public class pattern {
public static void main(String args[]) {
int no=1;
for(int i=0;i - 6 years agoHelpfull: Yes(0) No(1)
- public class pattern {
public static void main(String args[]) {
int no=1;
int a[][]=new int[5][5];
for(int i=0;i - 6 years agoHelpfull: Yes(0) No(0)
- int n = 5;
int j, k = 0;
for (int i = 1; i k - i + 1; j--)
System.out.print(j + " ");
System.out.println(j);
}
} - 6 years agoHelpfull: Yes(0) No(0)
- #include
int main()
{
int i,j,k,l,n;
scanf("%d",&n);
for(i=k=1;i - 6 years agoHelpfull: Yes(0) No(0)
- import java.util.*;
public class Pattern
{
public static void main(String args[])
{
int i;
int j;
int k=0;
int n=4;//size
for(i=1;ik-i;j--)
{
System.out.print(j);
}
System.out.println("");
}
}} - 6 years agoHelpfull: Yes(0) No(0)
- #include
main(){
int n,i,j,k,count=0,val;
printf("Enter Number:");
scanf("%d",&n);
for(i=1;i - 6 years agoHelpfull: Yes(0) No(0)
- #include
#include
#include
using namespace std;
int main()
{
cout - 6 years agoHelpfull: Yes(0) No(0)
- class DS
{
public static void main(String ar[])
{
int a=1,b=1;
for(int i=1;i - 2 years agoHelpfull: Yes(0) No(0)
Wipro Other Question