- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
3 Posted Topics
#include<stdio.h> #include<conio.h> void main() { int i,n,j; clrscr(); printf("\n Please Give The Value of N: "); scanf("%d",&n); for(i=n;i>=1;i--) { for(j=i;j>=1;j--) printf("%d ",j); printf("\n"); } getch(); system ("pause"); return 0; } `Inline Code Example Here` | |
#include <stdio.h> #include <conio.h> #include<math.h> void main() { int n,i,j,m,k; clrscr(); printf("Enter the No :- "); scanf("%d",&n); m=n; for(i=1;i<=n;i++) { printf("\n"); for(k=1;k<=2*m-1;k++) { printf(" "); } for(j=1;j<=i;j++) { printf(" *"); } m--; } getch(); system("pause"); return 0; } | |
Re: #include<stdio.h> #include<conio.h> void main() { int i,sum=0,n=100,j=0; clrscr(); printf("\n\n THE SERIES IS UNDER : \n\n\n"); i=2; while(i<=n) { sum=sum+i; if(i==2) printf("%d",i); else printf(" + %d",i); i=i+3; } printf("\n\n\n THE SUMMATION OF SERIES IS %d",sum); printf("\n\n\n"); i=2; while(i<=n) { sum=sum+i; if(i%5==0) { if(i==5) printf("%d",i); else printf(" + %d",i); j=j+i; } i=i+3; … |
The End.