C Program To Find Sum Of Integers Between 1 And 100 Which Are Divisible By 3 And 5

  • Uploaded by: Saiyasodharan
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View C Program To Find Sum Of Integers Between 1 And 100 Which Are Divisible By 3 And 5 as PDF for free.

More details

  • Words: 78
  • Pages: 1
SUM OF INTEGERS BETWEEN 1 AND 100 IN WHICH THE NUMBERS SHOULD BE DIVISIBLE BY BOTH 3 AND 5 To Do: 15 + 30 + …. + 90 Program: #include<stdio.h> #include void main() { int i = 2; int sum = 0; clrscr(); while(i <= 99) { if ((i%3 == 0) && (i%5 == 0)) { printf("%d\n", i); sum = sum + i; } i++; } printf("The sum is %d", sum); getch(); } More useful programs @ http://www.gethugames.in/blog/

Related Documents


More Documents from "Saiyasodharan"