Code For Alls..!

get the code!!

Showing posts with label c. Show all posts
Showing posts with label c. Show all posts

Monday, 9 October 2017

                                          Interlace odd / even from A to B. Two numbers A and B are passed as input. The program must print the odd numbers from A to B (inclusive of A and B) interlaced with the even numbers from B to A. Input...

Saturday, 7 October 2017

                                            Print Calendar Month in Words The program must accept an integer value N and print the corresponding calendar month in words.1 - January, 2 - February, .... , 11 - November, 12 - December If...

Friday, 6 October 2017

Given a positive integer N as the input, the program must print yes if N is a perfect number. Else no must be printed. Input Format: The first line contains N. Output Format: The first line contains yes or no Boundary Conditions: 1 <= N <= 999999 Example Input/Output 1: Input: 6 Output: yes Example Input/Output 2: Input: 8 Output: no Program: #include<stdio.h> #include...

Monday, 25 September 2017

Tuesday, 19 September 2017

                                             Day 6: Let's Review-hackerrank-solution Task Given a string, SS, of length NN that is indexed from 00 to N−1N−1, print its even-indexed and odd-indexed characters as 22 space-separated...
                                               Day 5: Loops-hackerrank-solution Task Given an integer, , print its first  multiples. Each multiple  (where ) should be printed on a new line in the form: n...

Sunday, 17 September 2017

                                                Matrix Row Sum (Id-3108) Given a R*C matrix (R - rows and C- Columns), print the sum of the values in each row as the output. Input Format: First line will contain R and C separated...