This is the program to print the series:
234567
34567
4567
567
67
7
The code is as follows:
#include <stdio.h>
main()
{
int p,a;
p=2;
for(int i=1;i<=6;i++)
{
a=p;
for(int j=1;j<=(6-i);j++)
{
printf(a);
a=a+1;
}
printf("\n");
p=p+1;
}
}
FOR MORE PROGRAMS : CLICK HERE
FOR COMPUTER SCIENCE NOTES : CLICK HERE
Comments
Post a Comment
THANK YOU FOR COMMENTING !
PLEASE SUBSCRIBE TO OUR WEBSITE FOR LATEST UPDATES