Write a program is any number takes from user. Display whether the number is divisible by 100
or not.
#include<stdio.h>
main()
{
int i=100,n;
printf("Enter the any postitive integers:\n");
scanf("%d",&n);
(n%100==0) ? printf(" yes this number is disivible of 100 : %d",n):printf(" No this number is not disivible of 100 :%d",n);
}
#include<stdio.h>
main()
{
int i=100,n;
printf("Enter the any postitive integers:\n");
scanf("%d",&n);
(n%100==0) ? printf(" yes this number is disivible of 100 : %d",n):printf(" No this number is not disivible of 100 :%d",n);
}
No comments:
Post a Comment