Category: Problem Solution
Reference: https://github.com/deniscostadsc/playground/blob/master/uri/1332/1332.cpp Code: #include<cstdio> #include<cstring> using namespace std; int main() { int n; char s[6]; scanf(“%d”,&n); while(n–){ scanf(“%s”,&s);…
#include<cstdio> #include<cstdlib> #include<cstring> int main() { char x[1111]; int i,j,n,sum=0; scanf(“%d”,&n); for(i=0; i<n; i++) { scanf(“%s”,x); for(j=0;…
Method Overloading: 1) Performed within class 2) Parameters must be different 3)Is the example of compile time…
#include<stdio.h> int main() { int m,n,c,d,matrix[10][10],transpose[10][10]; printf(“enter the number of rows and columns of matrix\n”); scanf(“%d %d”,&m,…
#include<stdio.h> int main() { int i,j,n; printf(“Enter value of n rows: “); scanf(“%d”,&n); for(i=1; i<=n; i++)…
Anagram: #include<stdio.h> int check_anagram(char [],char []); int main() { char a[100],b[100]; int flag; printf(“Enter first string\n”); gets(a);…
Recent Comments