Skip to main content

AI Agents: What They Are and How They Will Change Work

Artificial intelligence has moved beyond simply answering questions and generating text. A new generation of AI systems—known as AI agents—is emerging with the ability to plan tasks, use tools, make decisions, and complete multi-step workflows with less human intervention. From managing emails and analyzing data to writing software and assisting customers, AI agents could significantly change how people work. What Are AI Agents? An AI agent is a software system that can perceive information, reason about a goal, take actions, and adapt based on the results. Traditional AI tools usually respond to a specific instruction. For example, you might ask an AI chatbot to summarize a document, and it provides a summary. An AI agent can go further. You could give an agent a goal such as: "Research three competitors, compare their pricing, summarize their main features, and prepare a report." The agent may then: 1) Understand the objective. 2) Break the task into smaller steps. 3) Searc...

C program to find greatest among three integers

C program to find the greatest among three integers:

#include <stdio.h>
int main() {
  
  int num1, num2, num3;
 printf("Enter three integers: ");
    scanf("%d %d %d", &num1, &num2, &num3);

   if(num1 > num2 && num1 > num3) {
        printf("%d is the greatest.", num1);
    }
    else if(num2 > num1 && num2 > num3) {
        printf("%d is the greatest.", num2);
    }
    else {
        printf("%d is the greatest.", num3);
    }

    return 0;
}

In this program, we first declare three integer variables num1, num2, and num3. We then prompt the user to enter three integers using printf() and read those integers using scanf().

Next, we use a series of if and else if statements to compare the three numbers and determine which is the greatest. We use the logical operators && and || to combine conditions where necessary.

Finally, we print the result using printf().

Sample output :
The output of the program will depend on the values of the three integers entered by the user. Here's an example of what the output might look like for different inputs:

Example 1:
Enter three integers: 10 20 30
30 is the greatest.

Example 2:
Enter three integers: 20 10 20
20 is the greatest.

Example 3
Enter three integers: 5 5 5
5 is the greatest.

In Example 1, the greatest number is 30, so the program outputs "30 is the greatest." 

In Example 2, the greatest number is 20, so the program outputs "20 is the greatest."

 In Example 3, all three numbers are equal, so the program outputs "5 is the greatest."






Popular posts from this blog

Deadlock Characterisation

Deadlock Characterization Necessary Conditions: There are four conditions that are required to achieve deadlock: Mutual Exclusion  - At least one resource must be grip in a non-sharable mode; If any other process requests this resource, then that process must wait for the resource to be released. Hold and Wait  - A process must be concurrently gripping at least one resource and waiting for at least one resource that is presently being grip by some other process. No preemption  - Once a process is belonging a resource ( i.e. once its request has been allowed ), then that resource not be taken away from that process until the process freely releases it. Circular Wait -  A group of processes { P0, P1, P2, . . ., PN } must exist such that every P[ i ] is waiting for P[ ( i + 1 ) % ( N + 1 ) ]. ( Note that this situation implied the hold-and-wait condition, but it is easier to deal with the conditions if the four are considered individually. ) Resource-Allocation Graph In...

FIRM

          A firm is an organisation which converts inputs into outputs and it sells. Input includes the factors of production (FOP). Such as land, labour, capital and organisation. The output of the firm consists of goods and services they produce.           The firm's are also classified into categories like private sector firms, public sector firms, joint sector firms and not for profit firms. Group of firms include Universities, public libraries, hospitals, museums, churches, voluntary organisations, labour unions, professional societies etc. Firm's Objectives:            The objectives of the firm includes the following 1. Profit Maximization:           The traditional theory of firms objective is to maximize the amount of shortrun profits. The public and business community define profit as an accounting concept, it is the difference between total receipts and total profit. 2. Fi...

MAGNETISM

Magnetism: * The word magnetism is derived from the iron ore magnetite (Fe3O4). which was found in the island of magnesia in Greece. Gilbert who laid the foundation for  magnetism and had proposed that Earth itself behaves as a giant bar magnet. The field at the surface of the Earth is  roughly to 10^-4 T and the field extends upto a height of nearly five times the radius of the Earth.  Causes of the Earth’s magnetism: * The exact cause of the Earth’s magnetism is not known even today. Some important factors which may be the cause of Earth’s magnetism are: 1. Magnetic masses in the Earth.  2. Electric currents in the Earth.  3. Electric currents in the upper regions of the atmosphere.  4. Radiations from the Sun.  5. Action of moon etc.  *It is believed that the Earth’s magnetic field is due to the molten charged metallic fluid inside the Earth surface with a core of radius about 3500 km compared to the Earth’s radius of 6400 km.  Basic prope...