Answer:
1. is the answer
Explanation:
<h2>mark me as brainlest</h2>
Istream& operator>> (istream& input, Example& example)
{
// Extract your data from input stream here
return input;
}
Answer:
0+1=1
1+1=2
1+2=3
2+3=5
3+5=8
5+8=13
Explanation:
// C++ program to print
// first n Fibonacci numbers
#include <bits/stdc++.h>
using namespace std;
// Function to print
// first n Fibonacci Numbers
void printFibonacciNumbers(int n)
{
int f1 = 0, f2 = 1, i;
if (n < 1)
return;
cout << f1 << " ";
for (i = 1; i < n; i++) {
cout << f2 << " ";
int next = f1 + f2;
f1 = f2;
f2 = next;
}
}
// Driver Code
int main()
{
printFibonacciNumbers(7);
return 0;
}
Answer:
Written in Python:
hours = int(input("Hours: "))
mins = int(input("Minutes: "))
result = hours * 60 + mins
print("Result: "+str(result)+" minutes")
Explanation:
This line prompts user for hours
hours = int(input("Hours: "))
This line prompts user for minutes
mins = int(input("Minutes: "))
This line calculates the required output
result = hours * 60 + mins
This line prints the required output in minutes
print("Result: "+str(result)+" minutes")