write a programm which out put is a triangle
example
5
4 4
3 3 3
2 2 2 2
1 1 1 1 1
abel kaleab
0
Newbie Poster
Recommended Answers
Jump to PostActually, here is the code. Your teacher will be impressed! =)
#include<iostream> #include<windows.h> #include<iomanip> #include<math.h> #include<stdio.h> #include<stdlib.h> #include<time.h> #include<string> using namespace std; int p[3]={0,0,2}; string doit[8] = {"Plea","se ente","r th", "e siz", "e o", "f yo", "ur tria","ngle: "}; void endit() { cout << endl; } void …
Jump to PostActually, here is the code. Your teacher will be impressed! =)
<snipped>I beg to differ. Please, if you are going to blatantly give the answer
out, at least give a good answer. Not trying to be rude, just telling
the truth.
All 6 Replies
mrnutty
761
Senior Poster
restrictment
91
Posting Whiz in Training
restrictment
91
Posting Whiz in Training
Dannyo329
10
Junior Poster in Training
mrnutty
761
Senior Poster
restrictment
91
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.