Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to add 3 numbers.
- #include<iostream.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- int a,b,c;
- cout<<"Enter first number: ";
- cin>>a;
- cout<<"Enter second number: ";
- cin>>b;
- cout<<"Enter third number: ";
- cin>>c;
- a=a+b+c;
- cout<<"The sum of the numbers is: "<<a;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment