Write code that outputs variable numDays as follows. End with a newline. If input is 3, output is: Days: 3
1 answer:
Answer:
In C++:
#include<iostream>
using namespace std;
int main(){
int numDays;
cin>>numDays;
cout<<"Days: "<<numDays<<endl;
return 0;
}
Explanation:
This line declares numDays as integer
int numDays;
This line gets user input for numDays
cin>>numDays;
This line prints the required output and ends with a newline
cout<<"Days: "<<numDays<<endl;
You might be interested in
Answer:
support 5 axes of technological systems
Explanation:
It is government regulations and acceptable use policy
Answer:
You could just go to social medIa to say j.o.i.n z.o.o.m not brainly mate
Literally just do a colon and parenthesis :(
:( :-(