Q1 Write a program that inputs two numbers ‘swap the values and displays them.
Also, Make the Automata of C++ Program
Write a program that inputs two numbers ‘swap values and displays |
Hi, there in this article I will write a program that will input the 2 numbers ‘ and then I will swap the values and then displays the output of the program. So let's see the solution. Write a program that inputs two numbers ‘swap values and displays all values.
Answer.
Here is the answer of the question, write a program that inputs two numbers ‘swap the values and displays them also making the automata of C++ program
#include<iostream.h>#include<conio.h>
// Global variables
Void
Void show data ();
Void main ()
{
Take data ();
Process data ();
Show data ();
}
Void
{
}
Void process data ()
{
}
Void show data ()
{
}
Here are the automata of the C++ program
2 |
1 |
3 |
4 |
1 is the initial state
4 is the ending state
How does this program work?
In this short and C++ programming tutorial, I tried to show you how to work with C++ using Automata. In this simple program, I just want to show you how to work with variables and many more things.The theory of automata shows how automatically
In this program, the variables will show their data with the
No comments
Note: Only a member of this blog may post a comment.