Answer:
View
Explanation:
With "View", you have the option to add comment(s) which may be important even after the presentation is completed.
Cheera
The answer would be hierarchical
<span />
There are quite a lot of desktop publishing software as of today.
I'll give you the names of some of it.
- Adobe inDesign - one of the most popular
- Corel Draw
- Microsoft Publisher
- Serif
- Ultra Xml
And more.
There are actually a lot if you are just about to check in the internet.
Answer:
#here is code in python
#recursive function to find nth Fibonacci term
def nth_fib_term(n):
#if input term is less than 0
if n<0:
print("wronng input")
# First Fibonacci term is 0
elif n==0:
return 0
# Second Fibonacci term is 1
elif n==1:
return 1
else:
#find the nth term of Fibonacci sequence
return nth_fib_term(n-1)+nth_fib_term(n-2)
n=int(input("please enter the term:"))
print(n,"th Fibonacci term is: ")
print(nth_fib_term(n))
Explanation;
Read the term "n" which user wants to know of Fibonacci sequence.If term term "n" is less than 0 then it will print "wrong input". Otherwise it will calculate nth term of Fibonacci sequence recursively.After that function nth_fib_term(n) will return the term. Print that term
Output:
please enter the term:7
7 th Fibonacci term is:
13
Answer:
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main()
{
cout << "Enter a 5-digit number: ";
string number;
cin >> number;
bool valid = regex_search(number, regex("^\\d{4}[02468]$"));
if (valid) {
valid = stoi(number.substr(0, 1)) + stoi(number.substr(1, 1))
< stoi(number.substr(3, 1)) + stoi(number.substr(4, 1));
}
cout << number << (valid ? " is valid" : " is invalid");
}
Explanation:
Regular expressions can do all of your checking except for the sum of digits check. The checks are i.m.o. easiest if you don't treat the input as a number, but as a string with digits in it.
The regex means:
^ start of string
\d{4} exactly 4 digits
[02468] one of 0, 2, 4, 6 or 8 (this is what makes it even)
$ end of string