Professional Documents
Culture Documents
28e66cea 1628076871628
28e66cea 1628076871628
28e66cea 1628076871628
PROGRAM 1
Booka is an alien. He couldn't understand
how to measure days, weeks, months and
years. Make Booka understand what is
meant by days, weeks, months and years.
Teach him about the conversion of days into
years, months and weeks using a program.
PROGRAM 1
INPUT FORMAT: Input consists of an integer which
corresponds to the number of days.
OUTPUT FORMAT: The output consists of three integers.
The first integer corresponds to the total years. The second
integer corresponds to the total weeks. The third integer
corresponds to the total days.
Test Case 1 Test Case 2 Test Case 3
Input Input Input
373 366 367
Output Output Output
1 1 1
1 0 0
1 0 0
PROGRAM 2
Ajay was a student who is interested in
coding. One fine day Ajay's professor
challenged all the students to calculate the
power of 2 without using Arithmetic
operators. Ajay want's to solve this question
but he don't know which is the right
operator to be selected. Help Ajay by
writing a C++ program to calculate the
power of 2 without using arithmetic
operator.
PROGRAM 2
Test Case 1 Test Case 2
Input Input
3 0
Output Output
8 1
PROGRAM 3
Your task is to write a program to find
whether the given year is Leap year or Not.