3-
|
Write a program which accept two numbers
and print their sum.
#include<iostream.h>
#include<conio.h>
int main() { int a,b,c; cout<< "\nEnter first number : "; cin>>a; cout<<"\nEnter second number : "; cin>>b; c=a+b; cout<<"\nThe Sum is : "<<c;
getch(); return 0; }
//Friends these code Concepts are similar Only syntax will be change//
|
No comments:
Post a Comment