• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Amcat-python and c

Amcat-python and c interview questions and answers for freshers : Unsolved Question

Amcat-python and c Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

Amcat-python and c Question Topics

    Programming (1)

Keep an EYE (0)
Solved Question (0) UnSolved Question (1)
Pages: 11
Advertisements

(#M40165446) AMCAT-PYTHON AND C QUESTION The program accepts an integer N as the input. All the digits in the number must be repeated consecu Keep an EYE Keep an eye puzzle Keep an eye puzzle

The program accepts an integer N as the input. All the digits in the number must be repeated consecutively. If a digit is not repeated consecutively, the program must repeat it for two times. Finally, the program must print the modified integer value.

Boundary Condition(s):
1 <= N <= 10^13

Input Format:
The first line contains the value of N.

Output Format:
The first line contains the modified integer value.

Example Input/Output 1:
Input:
1223

Output:
112233

Explanation:
1 and 3 are not repeated consecutively. So consider 1 and 3 as 11 and 33.
Hence the output is 112233.

Example Input/Output 2:
Input:
998888745551

Output:
998888774455511

Asked In Amcat-python and c hemanthtejadasari (7 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (6)   (5) Submit Your Solution
Keep an EYE (0)
Solved Question (0) UnSolved Question (1)
Pages: 11
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

Maths is your friend If you meet with him every day, he becomes your best friend. If you leave for a time he forget you and you forget him.

Muhammad Ahmed

Arithmetic is where numbers fly like pigeons in and out of your head.

Carl Sandburg

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com