- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
#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:
Please help. I have an programming assignment due and i can't figure out how to code it. Complete the following code so that the program: 1. reads in any number of values in a given range into an array of integers 2. counts the frequency of each value, storing the … |