Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Specifer



Test expression



Working with switch case



Iterative statement



Header file




Array_read and display




// AHF C PROGRAM SOLVING

//solving here 2_D   ARRAY 	programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int i,n,A[1000]; pf("Enter the number of array element: "); scanf("%d",&n); //taking total element number for(i=0;i < n;i++) { printf("\nEnter ARRAY No. [%d] = ",i); //taking array element scanf("%d",&A[i]); } pf("\nThe array element are: "); for(i=0;i < n;i++) printf("\n ARRAY [%d] = %d",i,A[i]); //printing output return 0; }
OUTPUT:


© 2018 - All rights reserved