• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
projectsgeek

ProjectsGeek

Download Mini projects with Source Code, Java projects with Source Codes

  • Home
  • Java Projects
  • C++ Projects
  • VB Projects
  • PHP projects
  • .Net Projects
  • NodeJs Projects
  • Android Projects
    • Project Ideas
      • Final Year Project Ideas
      • JSP Projects
  • Assignment Codes
    • Fundamentals of Programming Language
    • Software Design Laboratory
    • Data Structure and Files Lab
    • Computer Graphics Lab
    • Object Oriented Programming Lab
    • Assembly Codes
  • School Projects
  • Forum

Sum of Numbers Divisible by 4 in C language

July 11, 2013 by ProjectsGeek 2 Comments

Sum of Numbers Divisible by 4 in C language

Write a Sum of Numbers Divisible by 4 in C program to calculate the sum of all numbers from 0 to 100  that are divisible by 4. Program should directly print the Sum of Numbers Divisible by 4 in C.

Sum of Numbers Divisible by 4 Program will simply start with 0 to 100 and check for numbers Divisible by 4.

Sum of Numbers Divisible by 4  C Code

#include<stdio.h>

#include<conio.h>

void main()
{
int i,sum=0;
clrscr();
for(i=0;i<=100;i++)
{
if(i%4==0)                                                              
sum=sum+i;
}

printf(“\naddition of numbers from 0 to 100 that are divisible by 4 is\n%d”,sum);
getch();
}

 Sum of Numbers Divisible by 4 Output Snapshot

 

Sum of Numbers Divisible by 4 in C

 

Other Projects to Try:

  1. Fundamentals of Programming Languages Codes
  2. Assembly Programs
  3. Assembly Language Codes
  4. Display Numbers in Ascending Order C language
  5. Fibonacci numbers program in C Language

Filed Under: Uncategorized

Reader Interactions

Comments

  1. Emely says

    January 18, 2014 at 3:10 pm

    Hurrah! Finally I ggot a webpage from where I be able
    to actually obtain helpful facts regtarding my study and knowledge.

    Reply
  2. christian louboutin discount says

    October 2, 2013 at 12:48 pm

    Check it out, gals. It’s drool-worthy, no?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tags

.Net Projects Download Android Project Ideas Android Projects Angular 2 Assembly Codes C # Projects C & C++ Projects C++ Projects Class Diagrams Computer Graphics Database Project Data Mining Projects DataScience Projects Datastructure Assignments Download Visual Basic Projects Electronics project Hadoop Projects Installation Guides Internet of Things Project IOS Projects Java Java Interview Questions Java Projects JavaScript JavaScript Projects java tutorial JSON JSP Projects Mechanical Projects Mongodb Networking Projects Node JS Projects OS Problems php Projects Placement Papers Project Ideas Python Projects seminar and presentation Struts

Search this Website


Footer

Download Java Project
Download Visual Basic Projects
Download .Net Projects
Download VB Projects
Download C++ Projects
Download NodeJs Projects
Download School Projects
Download School Projects
Ask Questions - Forum
Latest Projects Ideas
Assembly Codes
Datastructure Assignments
Computer Graphics Lab
Operating system Lab
australia-and-India-flag
  • Home
  • About me
  • Contact Form
  • Submit Your Work
  • Site Map
  • Privacy Policy