Skip to main content

Posts

Easy Fibonacci Series for CBSE students C++ Programming

 Here's your program! #include <iostream> using namespace std; int main() {     int n, a = 0, b = 1, c;     cout << "Enter the number of terms: ";     cin >> n;     cout << "Fibonacci Series: ";     for (int i = 1; i <= n; i++) {         cout << a << " ";         c = a + b;         a = b;         b = c;     }     return 0; } ---------------------------- So what happened here? the C++ code for generating the Fibonacci series in more detail. First, the code prompts the user to enter the number of terms they want in the Fibonacci sequence: c Copy code cout << "Enter the number of terms: " ; cin >> n; This code uses cout to display a message asking the user to enter a value, and cin to read in the user's input and store it in the variable n . Next, the code initializes three variables...
Recent posts

Virat Kohli's performance analysis after and before 2016

Before 2016 Kohli played 165 innings in ODIs before 2016 and scored 7460 runs at an average of 51.59 and a strike rate of 89.43. He hit 25 centuries and 33 fifties, with his highest score being 183. During this period, Kohli had a conversion rate of 43.1%, meaning he converted 43.1% of his fifty-plus scores into hundreds. His scoring rate in the first 10 overs of the innings was 4.96 runs per over, while his scoring rate in the last 10 overs was 8.43 runs per over. Kohli had a boundary percentage of 9.38%, meaning he scored a boundary every 10.67 balls faced. After 2016 Kohli has played 97 innings in ODIs since 2016 and scored 5091 runs at an average of 68.01 and a strike rate of 96.31. He has hit 21 centuries and 19 fifties, with his highest score being 160*. During this period, Kohli has a conversion rate of 52.5%, meaning he converted more than half of his fifty-plus scores into hundreds. His scoring rate in the first 10 overs of the innings has increased to 5.42 runs per over, wh...

India China Military Comparison by AI

  India and China are two of the largest and most powerful countries in the world, both in terms of population and economy. With their growing influence in the global political and economic arena, their military capabilities and the ongoing border disputes have attracted significant attention in recent years. When it comes to military strength, India and China are among the top contenders in the world. India has the fourth-largest military in the world, while China has the largest standing army in the world, according to the Global Firepower Index. However, India's military is considered more technologically advanced, and its defense budget has been increasing in recent years, which is a positive sign for its military modernization efforts. The most contentious point between India and China is the long-standing border dispute. The dispute, which dates back to the 1950s, centers around the areas of Aksai Chin and Arunachal Pradesh. In recent years, tensions have escalated, leading t...