Category: Array
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…
#include<iostream> using namespace std; int main(){ long long int n,tr, ary1[100000],ary2[100000],d; cin>>n; for(int i=0; i<n; i++){ cin>>ary1[i];…
String Upper: #include<iostream> #include<string> #include<cstdio> using namespace std; void upper_string(char st[]); int main(){ char str[100]; cout<<“Enter string:…
Hackerrank problem: #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main()…
Did this problem from subeen vai’s book. For maximum value: #include<stdio.h> int find_max(int ara[],int n); int main()…
code: #include<stdio.h> int main() { int ara[]={10,20,30,40,50,60,70,80,90,100}; //took this array for various limit int ara2[10]; //max value…
Recent Comments