#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
float a,b,c,d,e,f,g,h,total_sum,total_sub,total_mul,total_div;
cout<<"input a:"<<endl;
cin>>a;
cout<<"input b:"<<endl;
cin>>b;
total_sum=a+b;
cout<<"total sum:"<<total_sum<<endl;
cout<<"input c:"<<endl;
cin>>c;
cout<<"input d:"<<endl;
cin>>d;
total_sub=c-d;
cout<<"total sub:"<<total_sub<<endl;
cout<<"input e:"<<endl;
cin>>e;
cout<<"input f:"<<endl;
cin>>f;
total_mul=e*d;
cout<<"total mul:"<<total_mul<<endl;
cout<<"input g:"<<endl;
cin>>g;
cout<<"input h:"<<endl;
cin>>h;
total_div=g/h;
cout<<"total div:"<<total_div<<endl;
return 0;
}
Friday, August 11, 2017
Friday, July 14, 2017
Go to and system cls
#include<iostream>
#include<windows.h>
#include<conio.h>
using namespace std;
int main()
{
aa:
system("cls");
int x,y,z;
char ch;
cout<<"please input number";
cout<<"\n x=";
cin>>x;
cout<<"\n y=";
cin>>y;
z=x+y+x/y+y-x;
cout<<z;
cout<<"press q to exit any to continue";
ch=getch();
if(ch!='q')
{
goto aa;
}
return 0;
}
Output of the above program
please input number
x=16
enter for following information
y=17
enter for following information
34
#include<windows.h>
#include<conio.h>
using namespace std;
int main()
{
aa:
system("cls");
int x,y,z;
char ch;
cout<<"please input number";
cout<<"\n x=";
cin>>x;
cout<<"\n y=";
cin>>y;
z=x+y+x/y+y-x;
cout<<z;
cout<<"press q to exit any to continue";
ch=getch();
if(ch!='q')
{
goto aa;
}
return 0;
}
Output of the above program
please input number
x=16
enter for following information
y=17
enter for following information
34
Cout<<" "; and cin>>; number
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int x,y,z;
cout<<"please input number";
cout<<"\n x=";
cin>>x;
cout<<"\n y=";
cin>>y;
z=x+y+x/y+y-x;
cout<<z;
getch();
return 0;
}
output of the above program
please input number
x=12
enter the following information
y=21
enter the following information
42
Sunday, June 18, 2017
Glossary:
A
Arithmetic logic unit (ALU)/n: A component of CPU which performs actual arithmetic or mathematical calculations and logical operations.
ADSL /n : Asymmetric Digital subscriber line . A broadband communication technology designed for use ob telephone lines; it allow a single phone connection to be used for both internet service and voice calls at the same time.
ADSl modem /n: used to connect one or more computer to an ADSL phone line.
adware /n: software devised to display advertisements some may include spyware .
alphanumeric keys /n : keys that arranged letters and number as on a typewriter.
amazon.com /n : popular online shopping site.
android .n / A robot that resembles a human.
animations /n: image made up of a series of independent pictures put together in sequence to look like moving pictures.
applet /n: A small lava application usually designed to run automatically within a web page.
application software /n: programs that let you do specific tasks such as word processing database management or financial planning.
arcade game /n : A game played in a coin operated machine typically installed in pubs restaurants and amusement arcades.
ARPANet /n : Advanced research projects agency network developed in the early 70s by the US department of defence. This was the precursor to the internet.
Artificial intelligence /n: The study of methods by which a computer can simulate aspects of human intelligence.
ASCII code /n: A standard system for the binary representation of characters,ASCII,which stands for american standard code for information interchange, permits computers from different manufacturers to exchange data.
B
back up /n: to copy files from one dusk to another.
backbone /n: lines or connections that form the major access pathways within the internet.p
backup /n: A copy of data or software usually kept in case the original disk is damaged.
bandwidth /n
ADSL /n : Asymmetric Digital subscriber line . A broadband communication technology designed for use ob telephone lines; it allow a single phone connection to be used for both internet service and voice calls at the same time.
ADSl modem /n: used to connect one or more computer to an ADSL phone line.
adware /n: software devised to display advertisements some may include spyware .
alphanumeric keys /n : keys that arranged letters and number as on a typewriter.
amazon.com /n : popular online shopping site.
android .n / A robot that resembles a human.
animations /n: image made up of a series of independent pictures put together in sequence to look like moving pictures.
applet /n: A small lava application usually designed to run automatically within a web page.
application software /n: programs that let you do specific tasks such as word processing database management or financial planning.
arcade game /n : A game played in a coin operated machine typically installed in pubs restaurants and amusement arcades.
ARPANet /n : Advanced research projects agency network developed in the early 70s by the US department of defence. This was the precursor to the internet.
Artificial intelligence /n: The study of methods by which a computer can simulate aspects of human intelligence.
ASCII code /n: A standard system for the binary representation of characters,ASCII,which stands for american standard code for information interchange, permits computers from different manufacturers to exchange data.
B
back up /n: to copy files from one dusk to another.
backbone /n: lines or connections that form the major access pathways within the internet.p
backup /n: A copy of data or software usually kept in case the original disk is damaged.
bandwidth /n
Monday, February 6, 2017
Factorial of a Number in C++
Factorial of any number is the product of an integer and all the integers below it for example factorial of 4 is
4! = 4 * 3 * 2 * 1 = 24
Factorial program in C++ using for Loop
#include<iostream.h> #include<conio.h> void main() { int i, no, fact=1; clrscr(); cout<<"Enter the any no. : "; cin>>no; for(i=1;i<=no;i++) { fact=fact*i; } cout<<"Factorial: "<<fact; getch(); }
Subscribe to:
Posts (Atom)
Element of html
<!DOCTPE html> <html> <head> <title>hi</title> </head> <body> <p>This text is normal....
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF08gVg6nRcmCGMivm3q7vmvzqgPb8JQ-RIfslWqUkQ10gj1Oy2YD6FOWqw4IbM2g9nMSYYQUI6waDpmXu-BY3IbFTtRE2UWvUaOweuDKOn7d_NFPcUghC3dqLv3ZVv8avWqvC2EBCm6s/s320/Hydrangeas.jpg)