Wipro
Company
Programming
Program
1*2*3*4*17*18*19*20
--5*6*7*14*15*16
----8*9*12*13
------10*11
Read Solution (Total 13)
-
- #include
#include
using namespace std;
int main() {
int i,j,num=1,k=21,pos,x;
for(i=4;i>=1;i--){
for(j=1;j - 8 years agoHelpfull: Yes(53) No(14)
- /* 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 n = 4 , l = 1 , r = 20;
for(int i=0;i - 9 years agoHelpfull: Yes(16) No(7)
- public class TrapeziumNumber {
public static void main(String[] args) {
reverseTrapeziumOfNumbers(6);
}
public static void reverseTrapeziumOfNumbers(int n)
{
int k=1;
int square=n*n;
for(int i=n;i>=1;i--){
for(int l=n;l>=i;l--)
System.out.print(" ");
for (int j=1;j - 9 years agoHelpfull: Yes(12) No(4)
- #include
int main(){
int num,i,j,k,c=1,q,r,z;
printf("n Enter the size ");
scanf("%d",&num);
q=num*(num+1)-num+1;
z=num;
for(i=1;i - 9 years agoHelpfull: Yes(10) No(4)
- #include
using namespace std;
int main(){
int i,j,n,k,l,m;
cin>>n;
k=1;
l=n*(n+1);
for(i=1;i - 7 years agoHelpfull: Yes(4) No(0)
- #include
main(){
int i,j,k,n,c=0;
printf("Enter any number blw 1 and 99999999n");
scanf("%d",&n);
printf("Enter the number to find the frequencyn");
scanf("%d",&k);
for(i=0;i - 9 years agoHelpfull: Yes(3) No(2)
- #include
using namespace std;
int main()
{
int rows,num=1,k=1;
coutrows;
int a=rows;
int b=rows;
int c=rows;
for(int i=0;i - 6 years agoHelpfull: Yes(3) No(0)
- import java.util.*;
public class Main{
public static void main(String []args){
Scanner sc=new Scanner (System.in);
int p=sc.nextInt();
int n=(p*p)+p;
int g=p+p;
int a[][]=new int[g][g];
int n1=1,h=1,m=1;
for(int i=0;i - 6 years agoHelpfull: Yes(2) No(0)
- #include
#include
int main(){
int k=0,cou1=1,cou2=20,temp;
for(int i=1;i=i;l--){
if(l==4) temp=cou2-(4-i);
printf("%d",temp);
temp++;
if(l!=i)printf("*");
cou2--;
}
printf("n");
}
} - 7 years agoHelpfull: Yes(1) No(1)
- #include
int main(void)
{
int i, j, k;
int n=4;
int last=n*(n+1);
int a=1;
int b=last-(n-1);
int x=n;
int y=n-1;
int temp=b;
for(i=1;i - 7 years agoHelpfull: Yes(1) No(1)
- class Pattern1{
public static void main(String args[]){
int k=0,n=17,p=3;
for(int i=0;i - 6 years agoHelpfull: Yes(1) No(0)
- http://tpcg.io/GMNcTn
- 6 years agoHelpfull: Yes(1) No(0)
- dsfsfs;fwEFW
- 8 years agoHelpfull: Yes(0) No(3)
Wipro Other Question