1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sauron [17]
3 years ago
12

JAVA

Computers and Technology
1 answer:
Umnica [9.8K]3 years ago
5 0

import java.util.Scanner;

public class JavaApplication58 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter a positive integer:");

       String num = scan.nextLine();

       for (int i = num.length()-1; i >=0; i--){

           System.out.println(num.charAt(i));

       }

       

   }

   

}

I hope this helps!

You might be interested in
Columns can be added to a page in the page layout tab in the blank grouping
ZanzabumX [31]

Answer:

Page Setup Grouping.

Explanation:

In Microsoft Word, Columns break up the page into, at max, 13 columns, and at minumum, 2. The way you go about doing this is

  1. Go to the Layout Tab
  2. Go to the Page setup Grouping
  3. Click on the Columns Action
  4. In the Dialog Box, choose either from one of the presents, or custom make your own column settings.
  5. Click Okay
  6. Done!

3 0
3 years ago
Read 2 more answers
What is true about an electric field around a negative charge?
FrozenT [24]

The electric field points outward

8 0
3 years ago
Read 2 more answers
Process is useful for a quick turnaround in game development?
aleksley [76]
Rapid prototyping as it allows the production of a functional program in a short time
7 0
3 years ago
Read 2 more answers
Program for bit stuffing...?
Olegator [25]

Answer: Program for bit stuffing in C

#include<stdio.h>

      int main()

    {    

          int i=0,count=0;

          char data[50];

          printf("Enter the Bits: ");

          scanf("%s",data);            //entering the bits ie. 0,1  

          printf("Data Bits Before Bit Stuffing:%s",databits);

          printf("\nData Bits After Bit stuffing :");

          for(i=0; i<strlen(data); i++)

              {

              if(data[i]=='1')

                     count++;

              else

                     count=0;

                printf("%c",data[i]);

             if(count==4)

                {

                          printf("0");

                          count=0;

                 }

             }

    return 0;

 }

Explanation:

bit stuffing is the insertion of non-information bits during transmission of frames between sender and receiver. In the above program we are stuffing 0 bit after 4 consecutive 1's. So to count the number of 1's we have used a count variable. We have used a char array to store the data bits . We use a for loop to iterate through the data bits to stuff a 0 after 4 consecutive 1's.

4 0
3 years ago
1. State the types of programming language
timama [110]

Answer:

All four questions are explained below :

Explanation:

  1. The types of programming language are: Procedural Programming Language, Functional Programming Language , Object-oriented Programming Language, Scripting Programming Language,Logic Programming Language. For example: C, C++, Java, FORTRAN, PHP language etc.
  2. Imperative language means code is executed line by line, in sequence. And declarative language means that the program itself specifies what next is to be done not how it is done.
  3. One line of 2nd generation is equivalent to one line of object code.
  4. One line of 3rd generation is equivalent to many lines of object code.
8 0
3 years ago
Other questions:
  • You have found statistics on the Internet that you would like to use in your speech.
    6·1 answer
  • What are the 4-bit patterns used to represent each of the characters in the string "1301"? Only represent the characters between
    14·1 answer
  • How can you tell that a website is valid and reliable 10 points
    10·1 answer
  • Why when i click home on iphone i still at my grandma house
    11·2 answers
  • Importance of availability of mobile devices content that is of interest for users.
    12·1 answer
  • Most networking media send data using _____ in which data is represented by only two discrete states: 0s and 1s.
    15·2 answers
  • Just answer in five-line. Question:
    9·1 answer
  • HELP ME PLZZZ I'll give brainist​
    9·1 answer
  • Jak sie pisze oł na klawiaturze komputerowej
    11·1 answer
  • What are the specifications of mine shaft head gear​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!