Friday, March 30, 2018

How To Count Sum Of Two Number IN C++.

#include<conio.h>
#include<stdio.h>
#include<iostream.h>
int main()
{
int a,b,c;
cout<<"\n enter your no1:";
cin>>a;
cout<<"\n enter your no2:";
cin>>b;
c=a+b;
cout<<" sum is:"<<c<<endl;
getch();
return 0;

}

No comments:

Post a Comment

Generate Even Numbers in a Range In PHP.

$start = 1; $end = 20; for ($i = $start; $i <= $end; $i++) {     if ($i % 2 == 0) {         echo $i . " is even.<br>";   ...