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
Delicious77 [7]
3 years ago
5

Write two statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and

the year. End with newline.The program will be tested with inputs 1 2000, and then with inputs 5 1950. Ex: If the input is 1 2000, the output is:1/2000#include int main(void) {int birthMonth;int birthYear;cin >> birthMonth >> birthYear;cout << birthMonth << "/" << birthYear << endl;return 0;}
Computers and Technology
1 answer:
enyata [817]3 years ago
6 0

Answer:

Statement to get input values:-

cin>>birthMonth>>birthYear;

Statement for output:-

cout<<birthMonth<<"/"<<birthYear<<endl;

Explanation:

The statements are in C++ language.

To get the input we use cin in C++ with >>.

We are taking the input of birthMonth and birthYear.

For printing we use cout .We have printed birthMonth then slash and then birthYear.

You might be interested in
sometimes people who have been playing gta for a while are annoying, i was playing gta this weekend and was trying to escape, bu
murzikaleks [220]
Yeah I stopped playing cause of people like that, I’m sorry you had to deal w that op :) I hope you have a nice day
3 0
4 years ago
Read 2 more answers
a _____ is a telecommunications network that connects users and their computers in a geographical area that spans a campus or a
Pachacha [2.7K]

Answer:

(WAN) a wide area network

5 0
3 years ago
i have a at&amp;t router and a 1000mbs Ethernet cable connecting from that to my net gear r7000 that can push +1000mbs. the cabl
Lady_Fox [76]
DSL ranges from 128Kbps to 3Mbps, so this would be your bottleneck.
7 0
3 years ago
What is the highest strength for the leviathan axe in god of war
kicyunya [14]

Answer:

85

Explanation:

5 0
3 years ago
Read 2 more answers
Assume the availability of a function is_prime. Assume a variable n has been associated with positive integer. Write the stateme
My name is Ann [436]

Answer:

def main():

   # Accept data from the user

   n=int(input('Enter the value of n:'))

   k=2;

   sum=0

   print('The list of the prime numbers are as follows:')

   # This loop runs from k to n

   while k<=n:

       # Call is_prime() method,

       # to check whether k is a prime or not

       sum=sum+is_prime(k)

       k=k+1

   print('Sum of the prime numbers:',sum)

# is_prime() Method

def is_prime(k):

   prime=0        

   i=1

   # Check k is a prime or not

   while i<=int(k):

       # Find the factors of k

       if (k % i) == 0:

           prime=prime+1

       i=i+1

   # If k as two factors

   if(prime==2):        

       print(k)

       return k;

   # If k as more than two factors

   else:        

       return 0;

# Call the main() method

main()

Explanation:

5 0
3 years ago
Other questions:
  • Each phase of the system development life cycle is accomplished as a discrete, separate step. (1 point) (Points : 1.5) True
    7·1 answer
  • Gerry used html for her website. which best describes html
    15·1 answer
  • Code
    7·1 answer
  • Which type of development metrics does Instagram most improve when it releases an update in the App Store to fix errors its cust
    15·1 answer
  • I need a C++ program to ask the user to put in different numbers until zero is pressed then the program counts the numbers that
    10·1 answer
  • What is one reason that many older PC games, when run on modern hardware, will run at high speeds? Include discussions of frame
    15·1 answer
  • 1. What are the main uses for Protein in the body?
    13·2 answers
  • What is the difference between information poor and information rich<br>​
    13·1 answer
  • A user wants to print a spreadsheet horizontally on a piece of paper instead of vertically to fit more columns on a single page.
    15·1 answer
  • a domain name is assigned to you when you submit your website to a search engine. group of answer choices true false
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!