develop a n rows trianglar pattern similar to the followings (if inputing 4 for n).
*
**
***
****
Input Specification:
Input an integer for n.
Output Specification:
Output the trianglar pattern. No extra blank in the pattern.
Sample Input:
5
Sample Output:
*
**
***
****
*****
Sample Input:
2
Sample Output:
*
**
Answers
Explanation:
Programming Tutorial (K&R version 4)
This is a C Programming Tutorial for people who have a little experience with an interpreted programming language, such as Emacs Lisp or a GNU shell.
Edition 4.02
Copyright © 1987,1999 Mark Burgess
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Preface:
Introduction:
Reserved words & example:
Operating systems:
Libraries:
Programming style:
Form of a C program:
Comments:
Functions:
Variables:
Parameters:
Scope:
Preprocessor:
Pointers:
Standard Output and Standard Input:
Assignments Expressions and Operators:
Decisions:
Loops:
Arrays:
Strings:
Putting together a program:
Special Library Functions and Macros:
Hidden Operators:
More on Data Types:
Machine Level Operations:
Files and Devices:
Structures and Unions:
Data structures:
Recursion:
Example Programs chapter:
Errors and debugging:
Summary:
reserved words list:
Comparisons :
Character Conversion Table:
Emacs style file:
Answers to questions:
Index: