Posts

C Program to Swap two Numbers using temperory variable

#include<stdio.h> int main() {   double first, second, temp;   printf("Enter first number: ");   scanf("%lf", &first);   printf("Enter second number: ");   scanf("%lf", &second);   // value of first is assigned to temp   temp = first;   // value of second is assigned to first   first = second;   // value of temp (initial value of first) is assigned to second   second = temp;   // %.2lf displays number up to 2 decimal points   printf("\nAfter swapping, first number = %.2lf\n", first);   printf("After swapping, second number = %.2lf", second);   return 0; } Output Enter first number: 1.20 Enter second number: 2.45 After swapping, first number = 2.45 After swapping, second number = 1.20

The Gentleman's Game: Exploring the Magic of Cricket

The Gentleman's Game: Exploring the Magic of Cricket Cricket, often referred to as the gentleman's game, is a sport that captures the hearts and minds of millions around the world. With its rich history, complex rules, and thrilling moments, cricket has become more than just a game; it's a way of life for many enthusiasts. In this blog post, we'll delve into the captivating world of cricket, exploring its origins, key aspects, and its enduring appeal that transcends boundaries and unites fans across continents. 1. A Storied Heritage: Cricket traces its roots back to 16th-century England, where it began as a leisurely pastime for English nobility. Over the centuries, it evolved into an international sport played by teams from various nations. We'll explore the fascinating journey of cricket, from its humble beginnings to its global popularity today. 2. The Battle of the Pitch: At the heart of cricket lies the pitch, a sacred ground where batsmen face bowlers in an in