Skip to main content
SEE CS 2083 LEARN • PRACTICE • SUCCEED 🔍

Thursday, March 11, 2021

📚 SEE COMPUTER SCIENCE • CDC 2083

C program to test whether the given number is completely divisible by 13 or not.

📅 Updated learning resource Quick read 📱 Mobile friendly

 

1.     Write a C program to test whether the given number is completely divisible by 13 or not.

 

#include<stdio.h>

#include<conio.h>

int main()

{

int n;

printf("Enter any number: ");

scanf("%d", &n);

if(n%2==0)

printf("%d is divisible by 13",n);

else

printf("%d is not divisible by 13",n);

return 0;

}

 

No comments:

Post a Comment

Home 📖Chapters 🎯Quiz MCQs 🔍Search