>a; cout<<"Enter second number:"; cin>>b; sum=a+b; cout< >a; cout<<"Enter second number:"; cin>>b; sum=a+b; cout<

Presentation is loading. Please wait.

Presentation is loading. Please wait.

Name: Muhammad Hassan VU-ID: BC Version: Office 2007

Similar presentations


Presentation on theme: "Name: Muhammad Hassan VU-ID: BC Version: Office 2007"— Presentation transcript:

1 Name: Muhammad Hassan VU-ID: BC140401205 Version: Office 2007
Cs201 (1st )assignment Name: Muhammad Hassan VU-ID: BC Version: Office 2007

2 Programe code : #include<iostream.h> main(){ int a,b,sum;
cout<<" My VU ID: BC "<<endl<<endl; cout<<"Enter first number:"; cin>>a; cout<<"Enter second number:"; cin>>b; sum=a+b; cout<<endl; cout<<"Sum of numbers:"<<sum<<endl<<endl; cout<<" "<<endl; system("pause"); }

3 Screen shoot of output :


Download ppt "Name: Muhammad Hassan VU-ID: BC Version: Office 2007"

Similar presentations


Ads by Google