Friday, April 10, 2015

26. Write an algorithm and flow chart for a program that checks whether the number enter by user is exactly divisible by 5 but not by 11.

#include<stdio.h>
#include<conio.h>
 void main()
{
int num;
clrscr();
printf("\n Input a number:-");
scanf("%d",&num);
if(num%5==0&&num%11!=0)
printf("\n The number %d is exactly divisible by 5 but not by 11",num);
else
printf
printf("\n The number %d is not required number",num);
getch();
}

No comments:

Post a Comment