How To Make Money on YouTube $100 P... x
How To Make Money on YouTube $100 Per Day With AdSense


Sum of Digits of a Five Digit Number

Objective: The modulo operator, %, returns the remainder of a division. For example, 4 % 3 = 1 and 12 % 10 = 2. The ordinary division operator, /, returns a truncated integer value when performed o

View Solution →

Bitwise Operators

Example: n=3 k=4 The results of the comparisons are below: a b and or xor 1 2 0 3 3 1 3 1 3 2 2 3 2 3 1 For the and comparison, the maximum is 2. For the or compa

View Solution →

Printing Pattern Using Loops

Print a pattern of numbers from 1 to n as shown below. Each of the numbers is separated by a single space. 4 4 4 4 4 4 4 4 3 3 3 3 3 4

View Solution →

1D array in c

An array is a container object that holds a fixed number of values of a single type. To create an array in C, we can do int arr[n];. Here, arr, is a variable array which holds up to 10 integers. The a

View Solution →

Array Reversal

Given an array, of size n, reverse it. Example: If array, arr=[1.2.3.4,5] after reversing it, the array should be, arr=[5,4,3,2,1] Input Format: The first line contains an integer, n, denot

View Solution →

Printing Tokens

Given a sentence, s, print each word of the sentence in a new line. Input Format: The first and only line contains a sentence, s. Constraints: 1<=len(s)<=1000 Output Format: Prin

View Solution →

Digit Frequency

Given a string, s, consisting of alphabets and digits, find the frequency of each digit in the given string. Input Format: The first line contains a string, num which is the given number.

View Solution →