473,441 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

print triangle as below

1
2 2
3 3 3
May 15 '10 #1
3 1359
print triangle of no's using controls spaces
May 15 '10 #2
weaknessforcats
9,208 Expert Mod 8TB
Yes, I see. But what is your question, exactly?
May 15 '10 #3
whodgson
542 512MB
I`ll assume you meant to ask....."tell me how to......"
If in a for loop, with appropriate start and end conditions, you included
Expand|Select|Wrap|Line Numbers
  1. cout<<i<<endl;|| printf("%d\n",i);
you would (hopefully)print:
1
2
3
now what would you need to change to achieve your objective?
May 17 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: VISHNU VARDHAN REDDY UNDYALA | last post by:
Hi, Could anyone over here, write a program in C using only for loop to print the following output * *** ***** ******* ********* ***********
0
by: saileshr | last post by:
Hi, I have a table section on a flat HTML page with a print button below it. When i hit that button, I wanna use print.css to print only that table contents, but if someone uses the File > Print...
5
by: singhm | last post by:
Hi guys so I have a trianlge program having hard time finishing this though, I have to develop a program which is the following: Write a program that will allow the user to enter the 3 lengths...
1
by: vykkilynn | last post by:
My homework this week involved using the for statement to create loops that would display triangles. The only output we're allowed to use are forms of the print statements... i.e. print(),...
3
kaleeswaran
by: kaleeswaran | last post by:
i would like to know how to print this number like this... i have tried lot of ways but i can't so help me plzzzzzzzzzzzzzzzzzz 1 10 010 1010 01010 101010
2
by: Scotty | last post by:
Hi, Hope someone can help me I have a datagridview I want to print Code below works fine if I print the data if there is only 1 page (without using hasmore pages...
19
by: lost1 | last post by:
Can someone point me in the right direction on how to get the triangle type to display. Below is a triangle class that is tested by another completely separate class. The main method of the test...
6
by: jackj | last post by:
Hi, I am first time C++ student and doing the usual tasks. This one is to create a triangle based on user input of how large (how many rows) and what symbol to use. I have managed to create a...
2
by: nuimstudent | last post by:
Hey, I have to write a code which calculates pascals triangle using C. So Far I have the triangle with a right side allignment. As part of the assignment, we actually have to get the triangle to...
4
by: milk242 | last post by:
I am trying to figure out how to print a triangle in the shape of this depending on the user input. If they input 4 the max height would be 4. * ** *** **** *** ** * I have no idea how to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.