Documents

class-11 c++

Categories
Published
of 79
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Description
c programs-class-11
Transcript
    OMPUTER S IEN E   PROGRAMS IN C++ 2011-2012 NAME: ALOK KUMAR ROLL NO: 05     1. Program to  print “WELCOME IN C++” . #include<iostream.h> void main() { cout << Welcome in C++ Programming ; } OUTPUT Welcome in C++ Programming.    2. Program to find sum of two numbers. #include<iostream.h> void main() { int num1,num2,sum; cout<< Enter Number 1: ; cin>>num1; cout<< Enter Number 2: ; cin>>num2; sum=num1+num2; cout<< Sum of numbers: <<sum; } OUTPUT Enter Number 1: 5 Enter Number 2: 6 Sum of numbers: 11   3. Program to find square of a number. #include<iostream.h> void main() { int num1,square; cout<< Enter number: ; cin>>num1; square=num1*num1; cout<< Square of number is: <<square; } OUTPUT Enter number: 5 Square of number is: 25
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks