Technological Zone
All Computer Programming languages and its basics (C,C++,JAVA,PHP,SAP(ALL MODULES)
Pages
Home
SQL
Java
SAP
C++
C
MATLAB
Jobs
PHP
IPL
Sunday, 13 April 2014
#include <stdio.h>
int main()
{
int n, i, c, a = 1;
printf("Enter the number of rows of Floyd's triangle to print\n");
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
for (c = 1; c <= i; c++)
{
printf("%d ",a);
a++;
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Comment
Comment Box
is loading comments...
No comments:
Post a Comment