SlideShare a Scribd company logo
1 of 1
Practical No.-2

Aim

: To demonstrate the program for finding
cube.

Source code :

#include<iostream.h>
#include<conio.h>
void main()
{
int a, cb;
cout <<”enter the value of a”;
cin >>a;
cb=a*a*a;
cout<<”cb”<<cb;
}

Output

:

enter the value of a = 3
cb = 27

More Related Content

What's hot

Código para Latch físico: Touch_calibrate.py
Código para Latch físico: Touch_calibrate.pyCódigo para Latch físico: Touch_calibrate.py
Código para Latch físico: Touch_calibrate.pyChema Alonso
 
Doubly linklist
Doubly linklistDoubly linklist
Doubly linklistilsamaryum
 
Write a program that calculate the no of prime no,even and odd no.
Write a program that calculate the no of prime no,even and odd no.Write a program that calculate the no of prime no,even and odd no.
Write a program that calculate the no of prime no,even and odd no.university of Gujrat, pakistan
 
Introduction to cython: example of GCoptimization
Introduction to cython: example of GCoptimizationIntroduction to cython: example of GCoptimization
Introduction to cython: example of GCoptimizationKevin Keraudren
 
Write a program to perform translation.
 Write a program to perform translation. Write a program to perform translation.
Write a program to perform translation.Shobhit Saxena
 
Probability of finding a single qubit in a state
Probability of finding a single qubit in a stateProbability of finding a single qubit in a state
Probability of finding a single qubit in a stateVijayananda Mohire
 
built in function
built in functionbuilt in function
built in functionkinzasaeed4
 
D vs OWKN Language at LLnagoya
D vs OWKN Language at LLnagoyaD vs OWKN Language at LLnagoya
D vs OWKN Language at LLnagoyaN Masahiro
 
Macro and Preprocessor in c programming
 Macro and  Preprocessor in c programming Macro and  Preprocessor in c programming
Macro and Preprocessor in c programmingProfSonaliGholveDoif
 
Write a program to perform translation
Write a program to perform translationWrite a program to perform translation
Write a program to perform translationShobhit Saxena
 

What's hot (20)

Código para Latch físico: Touch_calibrate.py
Código para Latch físico: Touch_calibrate.pyCódigo para Latch físico: Touch_calibrate.py
Código para Latch físico: Touch_calibrate.py
 
Doubly linklist
Doubly linklistDoubly linklist
Doubly linklist
 
Prepostinfix
PrepostinfixPrepostinfix
Prepostinfix
 
Practical no 4
Practical no 4Practical no 4
Practical no 4
 
Sol10
Sol10Sol10
Sol10
 
VERILOG CODE FOR Adder
VERILOG CODE FOR AdderVERILOG CODE FOR Adder
VERILOG CODE FOR Adder
 
Sol7
Sol7Sol7
Sol7
 
Computer hw1
Computer hw1Computer hw1
Computer hw1
 
Write a program that calculate the no of prime no,even and odd no.
Write a program that calculate the no of prime no,even and odd no.Write a program that calculate the no of prime no,even and odd no.
Write a program that calculate the no of prime no,even and odd no.
 
Introduction to cython: example of GCoptimization
Introduction to cython: example of GCoptimizationIntroduction to cython: example of GCoptimization
Introduction to cython: example of GCoptimization
 
Functions in c++,
Functions in c++,Functions in c++,
Functions in c++,
 
Led with raspberry pi
Led with raspberry piLed with raspberry pi
Led with raspberry pi
 
Write a program to perform translation.
 Write a program to perform translation. Write a program to perform translation.
Write a program to perform translation.
 
Probability of finding a single qubit in a state
Probability of finding a single qubit in a stateProbability of finding a single qubit in a state
Probability of finding a single qubit in a state
 
C test
C testC test
C test
 
built in function
built in functionbuilt in function
built in function
 
Introduction to cython
Introduction to cythonIntroduction to cython
Introduction to cython
 
D vs OWKN Language at LLnagoya
D vs OWKN Language at LLnagoyaD vs OWKN Language at LLnagoya
D vs OWKN Language at LLnagoya
 
Macro and Preprocessor in c programming
 Macro and  Preprocessor in c programming Macro and  Preprocessor in c programming
Macro and Preprocessor in c programming
 
Write a program to perform translation
Write a program to perform translationWrite a program to perform translation
Write a program to perform translation
 

Viewers also liked

Ik neem je mee
Ik neem je meeIk neem je mee
Ik neem je meercmuziek9
 
Konumunuz artık birileri için çok önemli
Konumunuz artık birileri için çok önemliKonumunuz artık birileri için çok önemli
Konumunuz artık birileri için çok önemlimobilike
 
Οι ανακαλυψεις
Οι ανακαλυψειςΟι ανακαλυψεις
Οι ανακαλυψειςan kar
 
Resources for Families
Resources for FamiliesResources for Families
Resources for Familiesnailawissa
 
「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ
「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ
「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェTakehiro Ichinohe
 

Viewers also liked (7)

Ik neem je mee
Ik neem je meeIk neem je mee
Ik neem je mee
 
Brett Resume 2016
Brett Resume 2016Brett Resume 2016
Brett Resume 2016
 
Konumunuz artık birileri için çok önemli
Konumunuz artık birileri için çok önemliKonumunuz artık birileri için çok önemli
Konumunuz artık birileri için çok önemli
 
Οι ανακαλυψεις
Οι ανακαλυψειςΟι ανακαλυψεις
Οι ανακαλυψεις
 
Resources for Families
Resources for FamiliesResources for Families
Resources for Families
 
Advanced ic engines part-i fmcet
Advanced ic engines part-i fmcetAdvanced ic engines part-i fmcet
Advanced ic engines part-i fmcet
 
「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ
「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ
「最新デフォルトテーマをひも解きながら、オリジナルテーマへとカスタマイズするヒントを学ぼう。」in ゆるゆるカフェ
 

Practical no 2

  • 1. Practical No.-2 Aim : To demonstrate the program for finding cube. Source code : #include<iostream.h> #include<conio.h> void main() { int a, cb; cout <<”enter the value of a”; cin >>a; cb=a*a*a; cout<<”cb”<<cb; } Output : enter the value of a = 3 cb = 27