Git Product home page Git Product logo

day4-codingbootcamps-ps's Introduction

CodingBootcamps-Problem Solving Using C : Beginner level - Day 4 Hands-on Practice

This programs enhances problem solving skills using c for entry level students

Problem 1: Write a C program to get the integer array from the user and print it in the given order.

Input Format: Input consist of Two lines. First Line contains the number of elements N and the next contains array elements (space separated).
Output Format: Output consist of a single line, display the array elements in the given order with space separated.
Example
input:
5
1 5 10 50 123
output:
1 5 10 50 123

Problem 2: Write a program in C to copy the elements of one array into another array.

Input Format: Input consist of Two lines. First Line contains the number of elements N and the next contains array elements (space separated).
Output Format: Output consist of a single line, display the array elements( first and second(copied array) array) in the given order with space separated with appropriate statement
Example
input:
3
15 10 12
Output:
The elements stored in the first array are :
15 10 12
The elements copied into the second array are :
15 10 12

Problem 3: Write a C program to get two rows and columns of integers from the user and print them in matrix fashion.

Example
input:
1 2 3 4
Output:
1 2
3 4

Problem 4: Write a program in C to find the sum of all elements of the array.

Example
input:
Input the number of elements to be stored in the array :3
Input 3 elements in the array : 2 5 8
Output:
Sum of all elements stored in the array is : 15

Problem 5: You will be given an integer array 'arr'. Your task is to print the largest and smallest element in 'arr'.

Example
input:
5 8 10 3 2 6
Output:
Max = 10
Min = 2

day4-codingbootcamps-ps's People

Contributors

sachugowda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.