Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
C++ Programming Article
Submit Article
Comments on Program to display numeric triangle for user given value
Program to display numeric triangle for user given value
Category:
C++ Programming
(
Beginners
)
Author:
Easy Tutor
Program to display numeric triangle for user given value.
OUTPUT PROGRAM
1
22
333
......
Teresa Nichols
from
United States
Nov 13
I am writing a half pyramid reversed from the one above. It will align
like this ##
###
####
#####
and I want to use hashes instead of numbers.
It should print when given a number between 1 and 23
This is what I have so far
#include <stdio.h>
int main (void)
{
printf("Enter an integer for height between 1 and 23"):
scanf ("%d, &n");
for(int i = 0; i < height; i++)
{
is this even close and what do I do now? I need to add a loop
in somehere also....
Thanks,
Teresa
Related Topics:
How to add meta keywords and meta description
How to Highlight Row of Gridview on Mouse Over which doesn't use alternate row color
How to Highlight Gridview Row on Mouse Over when gridview rows are using alternate row color
Array
Array Lenght Property
Array Join Method
Array toString() Method
Array reverse() Method
Array sort() Method
Array slice() Method
Find Current Date and Time
How to Find Day of Month
How to find day of the week
How to find Year details from date
How to find Hours Details from Given Date
Please enter your Comment
Comment should be atleast 15 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
C++ Programming
View All
Homework Help
Data File Structure
Computer Graphics
Projects
Beginners
Object Oriented Progra...
Algorithms
Miscellaneous Problems
Numerical Analysis
Mathematics Program
Mouse Programming
Parsing
Scanner
Interview FAQ
Assembly Language
Artificial Intelligence
C Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint