Bangladesh Development Bank Senior Officer (IT) Written Test - 2017 #include <iostream> #include<stdio.h> using namespace std; int main() { int i,n,max,min,total,sum; float avg; printf("Enter Total number of elements \n"); cin>>total;...
A program sorts an array of integer. Write down the code that tests the sorting algorithm of written in a program.
Combined Bank(HBFC and KB) Assistant Programmer-2018 Description: given array of size number, write a program to check if it is sorted in Ascending order or not. Description: given array of size number, write a program to check if it is sorted in Ascending order or...
C program reverse a given string without using build in function.
C: Reverse a given string without using build in function #include <stdio.h> #include<string.h> int main() { char string1[100],string2[100]; char s[]="Learn and share blog"; int i,j,k,count; for(count = 0; s[count] != '\0'; count++);...
C program to find length of string without build in function.
Length of string without build in function. #include <stdio.h> #include<string.h> int main() { char s[]="Learn and share blog"; int count; for(count = 0; s[count] != '\0'; count++); printf("String Length : %d\n", count); return 0; } output: String...
C program count length of string using recursion(without build in function).
Count length of string using recursion(without build in function). #include<stdio.h> #include <string.h> int length_count(char *line) { static int count = 0; if(*line != NULL) { count++; length_count(++line); } return count; } int main() { char...
C program reverse a string using recursion.
Reverse a string using recursion. Procedure: #include<stdio.h> #include <string.h> void reverse(char *line) { if(*line) reverse(line+1); printf("%c",*line); } int main() { char str[] ="Learn and share blog"; printf("The reverse string is :\t");...
C program to Find First Largest Element and Second Largest Element in an Array.
First Largest Element and Second Largest Element in an Array. Procedure: #include <stdio.h> int main() { int arra[500], number, i; int FirstMax, SecondMax; printf("Enter Number of Elements in array\n"); scanf("%d", &number); printf("Enter %d numbers \n",...
C program to sum of all prime numbers in 1 to 100.
Prime Number: A positive number whose divisors only 1 and the number itself (among all the positive numbers) are known as prime number. Example: 1,2,3,5,7,11. Among positive even number only 2 is the prime number rest of all the prime numbers are odd(positive)...
C program to find all the prime numbers in 1 to 100.
Prime Number: A positive number whose divisors only 1 and the number itself (among all the positive numbers) are known as prime number. Example: 1,2,3,5,7,11. Among positive even number only 2 is the prime number rest of all the prime numbers are...
Write a C program either number is prime or not prime.
Prime Number: A positive number whose divisors only 1 and the number itself (among all the positive numbers) are known as prime number. Example: 1,2,3,5,7,11. Among positive even number only 2 is the prime number rest of all the prime numbers are odd(positive)...
C program to print infinte Hello World using for loop.
C program: #include <stdio.h> int main() { for(;;){ printf("Hello World\n"); return 0; }
C program for print infinte Hello World using while loop.
#include <stdio.h> int main() { while(1) printf("Hello World\n"); return 0; } Here condition 1 means during condition checking time while loop return condition is always true. Output: Hello World Hello World Hello World Hello World . . . . .
Check Armstrong number in a range 1 to 250.
Armstrong Number: A number is refer as Armstrong number if the numbers each digits cubic sum is equivalent to that number. Example: 153 = (1)^3 + (5)^3 + (3)^3. #include <stdio.h> int main() { int number,i,j,sum,reminder,tempo,min=1,max=250; //printf("Enter a...
C program to check a number is Armstrong number or not.
C program to check a number is Armstrong number or not. Armstrong Number: A number is refer as Armstrong number if the numbers each digits cubic sum is equivalent to that number. Example: 153 = (1)^3 + (5)^3 + (3)^3. C program: #include <stdio.h> int main() {...
Check perfect number range between 1 to 50.
Check perfect number range between 1 to 50. Perfect number are summation of divisors of a number exclude the number ownself. Eample 6,28. Lets check 28. From 1 to 27 we need to check which number can divide 28. then sum of all those number whose are divisors of 28. 28...
Check wheather a number is Perfect number or not.
Check wheather a number is Perfect number or not. Perfect number are summation of divisors of a number exclude the number ownself. Eample 6,28. Lets check 28. From 1 to 27 we need to check which number can divide 28. then sum of all those number whose are divisors of...
Frequency Word for IELTS Listening
Frequency Word for IELTS Listening School a. Library WordSentence1. Shelf 2. Librarian 3. The stacks 4. Return 5. Fine 6. Magazine 7. Copier 8. Overdue 9. Reading room 10. Reference...
Chapter 8: Gantt chart Project Development in SDLC
Gantt chart Project DevelopmentSchedule (project management) The project scheduleis the tool that communicates what work needs to be performed, which resources of the organization will perform the work and the timeframes in which that work needs to be performed....
Chapter 6: Data Flow Diagram in Software Development Life Cycle.
Data Flow Diagram What is DFD? A data flow diagram (DFD) is a graphical representation of the "flow" of data through an information system, modelling its process aspects.A DFD is often used as a preliminary step to create an overview of the system, which can later be...
Chapter 5: System request on SDLC
System Request In most organizations, project initiation begins by preparing a system request. A system request is a document that describes the business reasons for building a system and the value that the system is expected to provide.The project sponsor...