Category: C Refresh

17
Apr
2017

Reverse a string

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

16
Apr
2017

String Refreshing

//Program to assign string and display the same #include<stdio.h> #include<stdlib.h> int main() { char str[]=”LearnGood”; printf(“Assigned string:…

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