12345 2345 345 45 5
#include <stdio.h>
int main()
{
int i, j;
for(i=1;i<=5;i++)
{
for(j=i;j<=5;j++)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C
it's incorrect
ReplyDeletepython program:
Deleten=int(input("Enter a number: "))
for i in range(1,n+1):
for a in range(i,n+1):
print(a,end=" ")
print()
Java code :
ReplyDeleteint va = 1;
for(int i=5;i>=1;i--){
for(int j=1;j<=i;j++){
System.out.print(j+va-1);
}
System.out.println();
va++;
}
int i,j,n,k=1;
ReplyDeletescanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=1;j<=i;j++)
{
if(j>n)
break;
printf("%d",j);
}
printf("\n");
k++;
n--;
}
#include
ReplyDelete#include
main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=i;j<=5;j++){
printf("%d",j);
}
printf("\n");
}
getch();
}
nic one
ReplyDelete#include
ReplyDeleteint main()
{
int r,i,j;
printf("Enter the number of rows : ");
scanf("%d",&r);
for(i=1;i<=r;i++)
{
for(j=i;j<=r;j++)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
#include
ReplyDeleteint main(void) {
// your code goes here
int i,j,n,k;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
k = i;
for(j=n;j>=i;j--)
{
printf("%d",k);
k++;
}
printf("\n");
}
return 0;
}
Nice
ReplyDelete#include
ReplyDeletevoid main()
{
int i,j;
for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
}
#include
ReplyDelete#include
void main()
{
int r,c;
clrscr();
for(r=1;r<=5;r++)
{
for(c=1;c<=5;c++)
{
printf("%d",c);
}
printf("\n");
}
getch();
}
// r is a stands for row and c is a stands for column.
12345
ReplyDelete#include
ReplyDeleteint main()
{
int n;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
for(int j=i;j<=n;j++)
{
printf("%d ",j);
}
printf("\n");
}
return 0;
}
good bro !!!!
ReplyDeletecan i ask u something ?
ReplyDelete12345
ReplyDelete2
3
4
5
In C++ language;
ReplyDelete#include
using namespace std;
int main(){
int n;
cin >> n;
int i = 1;
while(i<=n){
int j = i;
while(j<=n){
cout << j;
j++;
}
cout << endl;
i++;
}
}
7
ReplyDelete6 6
14 14 14
12 12 12 12
21 21 21 21 21
plzz code
I would like to thank you for literally saving my assignment.
ReplyDelete