In this article i write examples Sequence Program
Example 1 :
Summation Program
#include <conio.h>
#include <iostream.h>
void main()
{
int x,y;
clrscr();
cout<<"Input in variable x : "<<endl;
cout<<"Input in variable y : "<<endl;
x=x+y;
cout<<"x + y = "<<x;
getch();
}
Example 2 :
Multiplication Program
#include <conio.h>
#include <iostream.h>
void main()
{
int x,y;
clrscr();
cout<<"Input in variable x : "<<endl;
cout<<"Input in variable y : "<<endl;
x=x*y;
cout<<"x * y = "<<x;
getch();
}
Example 1 :
Summation Program
#include <conio.h>
#include <iostream.h>
void main()
{
int x,y;
clrscr();
cout<<"Input in variable x : "<<endl;
cout<<"Input in variable y : "<<endl;
x=x+y;
cout<<"x + y = "<<x;
getch();
}
Example 2 :
Multiplication Program
#include <conio.h>
#include <iostream.h>
void main()
{
int x,y;
clrscr();
cout<<"Input in variable x : "<<endl;
cout<<"Input in variable y : "<<endl;
x=x*y;
cout<<"x * y = "<<x;
getch();
}
Comments
Post a Comment