Home C 51. Pattern 4 51. Pattern 4 / August 03, 2017 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 Code: #include<stdio.h> int main(){ int n,i=0,j=0,k,x=0; scanf("%d",&n); k=n; for(i=1;i<=n;i++) { for(j=k;j>x;j--) { printf("%d ",j); } x++; printf("\n"); } return 0; } You Might Also Like Write a program that calculate the sum of the ff. quantities. In each case, N indicates a quantity specified by user. A. 1+½+⅓+¼...+¹/N=_____ B. 1²+2²+3²+... N²=______October 06, 2017Single number as a command line argumentOctober 02, 2017How to swap two numbers by using function September 29, 2017 Post a Comment
No comments