Category: C Refresh
Problem 65: Reverse Take a word from user and print the word in reverse order. [If user…
//Program to assign string and display the same #include<stdio.h> #include<stdlib.h> int main() { char str[]=”LearnGood”; printf(“Assigned string:…
#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]; } }…
Recent Comments