Month: April 2017
#include<stdio.h> int main() { int i,j,p,q,a[100][100]; printf(“enter value:”); scanf(“%d %d”,&i,&j); for(p=0;p<i;p++) { for(q=0;q<j;q++){ scanf(“%d”,&a[p][q]); } } for(p=0;p<i;p++)…
problem: (courtesy:101cproblems.com) Take an array of integer data type of size 5. Scan the values from the…
Take an array of integer data type of size 5. Scan the values from the user. Now…
for maximum: #include<stdio.h> int main() { int ary[7]={-99,45,100,37,89,-327,245}; int i,max=0; for(i=0;i<7;i++) { if(ary[i]>max) { max=ary[i]; } }…
Code: #include<stdio.h> int main(){ int arr[10][10],i,j,m,n; //Read order printf(“enter order of matrix:\n”); scanf(“%d %d”,&m,&n); //read matrix…
Code: #include<stdio.h> int main(){ int arr[10][10],i,j,m,n; //Read order printf(“enter order of matrix:\n”); scanf(“%d %d”,&m,&n); //read matrix…
Recent Comments