MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a C-program to count the number of divisible numbers in a given range(1-100)?

  1. Home
  2. C Language Programs

Write a C-program to count the number of divisible numbers in a given range(1-100)?

Write a C-program to count the number of divisible numbers in a given range(1-100)


#include <stdio.h>
int main() {
    int x,n;
    printf("Enter n value ");
    scanf("%d",&n);
    
    printf("%d Divisible count is %d",n ,100/n);
  
    return 0;
}

Output:

Enter n value 2
50

Enter n value 3
33




More Programs


45 . Write a C-program to print count the number of divisible numbers in a given range(1-100) without using loop
46 . Write a C-program to print factorial number using for loop
47 . Write a C-program to print factorial of n numbers using for loop
48 . Write a C-program to print sum of natural numbers using for loop
49 . Write a C-program to print sum of even numbers using for loop
50 . Write a C-program to print sum of odd numbers using for loop
51 . Write a C-program to print sum of even or odd numbers based on the n value using for loop
52 . Write a C-program to print sum of even or odd numbers based on the n value using single loop
53 . Write a C-program to display table using for loop
54 . Write a C-program to print a to z
55 . Write a C-program to print ASCII values of a to z



Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a java Program to print Armstrong number between 1 to 1000

Write a Program to Find largest and smallest number in an array in java

Write a java Program to print odd and even numbers from an array

Write a Java program to print the even numbers from 1 to 20

Write a Java program to swap the first and last elements of an array and create a new array

Python Practice Programs

Write a python program to print reserved keywords

Write a Python program that prints the calendar for a given month and year.

Write a Python program to convert Celsius to Fahrenheit.

Write a Python program to count number of digits in an integer

Write a python program to check two strings are Anagram or not

Java Quiz

Java Quiz - 20

Java Quiz - 21

Java Quiz - 22

Java Quiz - 1

Java Quiz - 12

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs