Arithmetic Operators in Java (Reference to the textbook of GSEB-XII)
public class ArithOperators { public static void main(String args[]) { short x=6; int y=4; float a=12.5f; //suffix f to expli...
public class ArithOperators { public static void main(String args[]) { short x=6; int y=4; float a=12.5f; //suffix f to expli...
#include<stdio.h> int compLength(char s1[], char s2[]) { int l1,l2; for(l1=0;s1[l1]!='\0';l1++); //length of string1 f...
#include<iostream> #include<iomanip> using namespace std; int main() { int ar[11]={19,14,23,22,18,25,17,30,9,17,33}, n=1...
Download the File. Click here to Watch the Explanation & Developing Video
#include<iostream> #include<iomanip> #include<time.h> #include<stdlib.h> using namespace std; void searchArray() { ...
#include<iostream> #include<iomanip> #include<time.h> #include<stdlib.h> using namespace std; void searchArray() { ...
#include<iostream> #include<iomanip> using namespace std; void Pattern1(int n) { int i, j, k, x=1; for(i=1;i<=n;i++) {...
#include<stdio.h> int main() { char pwd[20],ch; char mypwd[]="Hello"; int i=0; printf("Enter Password: "...
''' Following logics in single program. Find the distinct values of array Find the frequency of each number of array. Find all ...
#include<iostream> using namespace std; void shiftNumbers(int a[],int n) { int i,j,k,tmp; for(i=0,j=0;i<n;i++) { if(a[i]==...
#include<iostream> using namespace std; void cyclicRotate(int a[],int n) { int tmp,j; tmp=a[n-1]; for(j=n-1;j>0;j--) { a...
#include<iostream> using namespace std; void swap(int a[][4] ,int r, int c) { int i,j,n=4; for(int i=0;i<r;i++) { for(in...
Download the File. Click here to Watch the Explanation & Developing Video