You are on page 1of 3

LOVELY PROFESSIONAL UNIVERSITY

MITTAL SCHOOL OF BUSINESS

Name: Esmail yaseen alaswani Course Title: PROGRAMMING IN C


Student’s Roll no: B45 Student’s Reg. no: 11916535
Course Instructor: Rohit sethi Course Code: CAP-180
Academic Task No.: CA 1 Academic Task: Assignment
Date of Allotment: 24-08-2020 Date of submission: 26-08-2020
Evaluation Parameters: (Parameters on which student is to be evaluated- To be mentioned by
students as specified at the time of assigning the task by the instructor)
Q2. C program to check whether a number is divisible by 5 and 11 or not. For eg
if you enter 50 then number not divisible by 5 and 11. If number 110 then number
is divisible by 5 and 11.

#include <stdio.h>

int main()

int num;

printf("Enter any number: ");

scanf("%d", &num);

if((num % 5 == 0) && (num % 11 == 0))

printf("Number is divisible by 5 and 11");

else

printf("Number is not divisible by 5 and 11");

return 0;

You might also like