Accenture
Company
Programming
Program
Diplay
*
**
***
****
*****
******
*******
********
*********
**********
with any lang?
Read Solution (Total 43)
-
- int i,j;
for i = 0 to 9
for j = 0 to i
printf("*");
end j loop
printf("n");
end i loop
- 10 years agoHelpfull: Yes(45) No(1)
- import java.io.*;
import java.util.*;
class output
{
public static void main(String args[])throws Exception
{
int n;
System.out.println("enter the number");
Scanner sc=new Scanner(System.in);
n=sc.nextInt();
System.out.println("The output is");
for(int i=0;i - 10 years agoHelpfull: Yes(2) No(5)
- main()
{
int i;
for(i=0;i - 10 years agoHelpfull: Yes(1) No(4)
- 10 years agoHelpfull: Yes(1) No(4)
- #include
#include
void main()
{
int i,j,x;
printf("Insert Any Number");
scanf("%d",&x);
for(i=0;i - 10 years agoHelpfull: Yes(1) No(4)
#include
int main()
{
int row, c, n, temp;
printf("Enter the number of rows in pyramid of stars you wish to see ");
scanf("%d",&n);
temp = n;
for ( row = 1 ; row - 10 years agoHelpfull: Yes(1) No(3)
- #include
void main()
{
int i,j,row;
printf("enter the no of row:");
scanf("%d",&row);
for(i=0;i - 10 years agoHelpfull: Yes(1) No(0)
- #include
#dedine MAX 5
int main()
{
for(int i=0;i - 5 years agoHelpfull: Yes(1) No(0)
- #include
#dedine MAX 10
int main(){
for(int i=0;i - 5 years agoHelpfull: Yes(1) No(0)
- import java.io.*;
import java.util.Scanner;
public class Pattern{
public static void main(String []args){
int i;
int j;
int n=9;
for(i=1;i - 5 years agoHelpfull: Yes(1) No(0)
- for(i=1;i
- 10 years agoHelpfull: Yes(0) No(1)
- class Astrix
{
public static void main(String args[])
{
System.out.println("Enter Number: ");
int n = Integer.parseInt(System.console().readLine());
for(int i =1;i - 10 years agoHelpfull: Yes(0) No(0)
- #include
void main()
{
int i,j;
for(i=1;i - 10 years agoHelpfull: Yes(0) No(0)
- #include
#include
void main()
{
clrscr();
int n,i,j;
printf("Enter the value of line:",n);
scanf("%d",&n);
for(i=1;i - 10 years agoHelpfull: Yes(0) No(0)
- main()
{
clrscr( );
printf("*n");
printf("*t*n");
printf("*t*t*n");
printf("*t*t*t*");
getch();
} - 10 years agoHelpfull: Yes(0) No(2)
- #include
#include
void main()
{
int i,j;
scanf("%d%d",&i,&j);
for(i=0;i - 10 years agoHelpfull: Yes(0) No(0)
- class Star
{
public static void main(String args[])
{
int i,j;
for(i=0;i - 10 years agoHelpfull: Yes(0) No(0)
- int i,j,a=1,n=10;
for(i=1;i - 10 years agoHelpfull: Yes(0) No(0)
- for(int i=0;i
- 10 years agoHelpfull: Yes(0) No(0)
- for(int i=0;i
- 10 years agoHelpfull: Yes(0) No(0)
- inm c language we will write it as...
#include
#include
int main(){
int i,j;
for(i=0;i - 10 years agoHelpfull: Yes(0) No(0)
- main()
{
int i,j,n;
printf("enter n value:",%d);
scanf("%d",&n);
for(i=1;i - 10 years agoHelpfull: Yes(0) No(0)
- in java...
public class ankit{
public static void main(String args[]){
for(i=1;i - 10 years agoHelpfull: Yes(0) No(0)
- /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author vaibhav
*/
public class star {
public static void main(String []args){
int count=0;
while(count!=10){
for(int i=0;i - 10 years agoHelpfull: Yes(0) No(0)
- for(i=1;i
- 8 years agoHelpfull: Yes(0) No(0)
- #include
main()
{
char s=*,i,j,n=20,m=30:
for(i=1;i - 8 years agoHelpfull: Yes(0) No(0)
- main()
{
int i,j;
for (j=0;j - 8 years agoHelpfull: Yes(0) No(0)
- int i,j=1;
for(i=1;i - 8 years agoHelpfull: Yes(0) No(0)
- #include
main{
int i,j;
for(i=1;i - 8 years agoHelpfull: Yes(0) No(0)
- package javaapplication6;
/**
*
*
*/
public class JavaApplication6 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int i,j;
for(i=1;i - 7 years agoHelpfull: Yes(0) No(0)
- int main()
{
int i,j,n;
printf("enter value of n");
scanf("%d",&n);
for(i=1;i - 6 years agoHelpfull: Yes(0) No(0)
- #include
int main()
{
int i,j;
for(i=1;i - 6 years agoHelpfull: Yes(0) No(0)
- #include
#include
int main()
{
int i,j;
for(i=1;i=i;j--)
{
printf("*");
}
printf("n");
}
} - 6 years agoHelpfull: Yes(0) No(0)
- #include
int main()
{
int i,j;
for(i=1;i - 6 years agoHelpfull: Yes(0) No(0)
- #include
void main()
{
for(i=1;i - 5 years agoHelpfull: Yes(0) No(0)
- def bypat(n):
for i in range(0,n):
for j in range(0,i+1):
print("*",end="")
print("r")
n=int(input())
bypat(n) - 5 years agoHelpfull: Yes(0) No(0)
- #include
using namespace std;
int main()
{
for(int i=0;i - 5 years agoHelpfull: Yes(0) No(0)
- In python:-
for i in range(0,9):
for j in range(i):
print("*",end=" ")
print("*") - 5 years agoHelpfull: Yes(0) No(0)
- #*PYTHON 3 * #
n=int(input())
for i in range(1,n+1):
for j in range(i):
print("*",end="")
print() - 5 years agoHelpfull: Yes(0) No(0)
- class Pattern
{
public static void main (String[] args)
{
for (int i = 1; i - 5 years agoHelpfull: Yes(0) No(0)
- package test;
public class Piramid {
public static void main(String[] args) {
for(int i=1;i - 3 years agoHelpfull: Yes(0) No(0)
- class Pettern1
{
public static void main(String...args)
{
for(int i=1;i - 3 years agoHelpfull: Yes(0) No(0)
- public class StarPattern
{
public static void main(String[] args)
{
for(int i=1;i - 3 years agoHelpfull: Yes(0) No(0)
Accenture Other Question