SlideShare a Scribd company logo
Practical No.-5
Aim

: To demonstrate the program for verifying
The numbers which is completely divisible
By 5 & 2.

Source code :

#include<iostream.h>
#include<conio.h>
void main()
{
int a;
cout <<”Enter the value of a”;
cin >>a;
if (a%2=0)&&(a%5=0)
cout<<”the number is divisible by 5&2”;
}

Output

:

Enter the value of a=10
the number is divisible by 5&2

More Related Content

DOCX
Practical no 6
DOCX
Practical no 1
DOCX
Assignement of programming & problem solving ass.(3)
DOCX
Assignment no 5
PPT
DOCX
Practical no 3
DOCX
C programming Lab 1
PDF
Factorial Program in C
Practical no 6
Practical no 1
Assignement of programming & problem solving ass.(3)
Assignment no 5
Practical no 3
C programming Lab 1
Factorial Program in C

What's hot (20)

PPTX
How c program execute in c program
DOCX
B.Com 1year Lab programs
PDF
88 c-programs
PPTX
Testing lecture after lec 4
PPT
Practical basics on c++
DOCX
Practical write a c program to reverse a given number
PPT
Functions & Procedures [7]
DOC
C program to add n numbers
DOCX
Practical write a c program to reverse a given number
PDF
C language questions_answers_explanation
PPT
Lecture 3 c++
DOC
C program to check leap year
PPTX
Presentation on C language By Kirtika thakur
DOCX
C Language Programs
PDF
Arithmetic operator
DOCX
Basic of c programming www.eakanchha.com
PPTX
Compiler design lab
DOC
PPT
Concept of c
PDF
PF LAB ASSIGNMENT
How c program execute in c program
B.Com 1year Lab programs
88 c-programs
Testing lecture after lec 4
Practical basics on c++
Practical write a c program to reverse a given number
Functions & Procedures [7]
C program to add n numbers
Practical write a c program to reverse a given number
C language questions_answers_explanation
Lecture 3 c++
C program to check leap year
Presentation on C language By Kirtika thakur
C Language Programs
Arithmetic operator
Basic of c programming www.eakanchha.com
Compiler design lab
Concept of c
PF LAB ASSIGNMENT
Ad

Viewers also liked (8)

DOCX
Production schedule
PDF
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
PPTX
Konumunuz artık birileri için çok önemli
DOCX
Writing prompt for the second quarterly exam
PDF
Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
DOCX
Jeremy Prince Resume'
PDF
Resources for Families
DOCX
Production schedule
Production schedule
Design, Testing and Validation of a Scale Model Semisubmersible Offshore Wind...
Konumunuz artık birileri için çok önemli
Writing prompt for the second quarterly exam
Teaching Bioinformatics data analysis using Medicago truncatula as a model - ...
Jeremy Prince Resume'
Resources for Families
Production schedule
Ad

Practical no 5

  • 1. Practical No.-5 Aim : To demonstrate the program for verifying The numbers which is completely divisible By 5 & 2. Source code : #include<iostream.h> #include<conio.h> void main() { int a; cout <<”Enter the value of a”; cin >>a; if (a%2=0)&&(a%5=0) cout<<”the number is divisible by 5&2”; } Output : Enter the value of a=10 the number is divisible by 5&2