Category: A ll Codes

17
Apr
2017

Reverse a string

Problem 65: Reverse Take a word from user and print the word in reverse order. [If user…

12
Apr
2017

Array Self Input Size

#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++)…

12
Apr
2017

integer odd even

problem: (courtesy:101cproblems.com) Take an array of integer data type of size 5. Scan the values from the…

12
Apr
2017

Array Value Average

Take an array of integer data type of size 5. Scan the values from the user. Now…

11
Apr
2017

Find maximum and minimum value in an array

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]; } }…

11
Apr
2017

2d array codes

  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…