skip to main (ir a principal)
|
skip to sidebar (ir al sidebar)
C Programs
Twitter
Facebook
Flickr
RSS
Pages
Home
SUM OF ALL VALUES FROM 1 - 5
Siraj Shaikh
#include<stdio.h>
#include<conio.h>
void main()
{
int i,s=0;
i=1;
while(i<=5)
{
s=s+i;
i++;
}
printf("Sum=%d",s);
getch();
}
0 comments:
(
+add yours?
)
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Archive
Archive
Jun 01 (4)
May 01 (1)
Apr 28 (5)
Apr 13 (4)
Apr 03 (4)
Mar 07 (5)
Mar 05 (5)
Mar 04 (4)
Feb 25 (2)
Feb 24 (7)
Feb 23 (5)
Feb 22 (2)
Feb 21 (8)
Feb 20 (10)
Popular Posts
TO FIND MAXIMUM & MINIMUM OF THREE NUMBERS
#include<stdio.h> void main() { int a,b,c; printf("Enter 3 numbers"); scanf("%d%d%d",&a,&b,&c...
MULTIPLICATION OF ALL VALUES 1 - 5
#include<stdio.h> #include<conio.h> void main() { int i,s=1; i=1; while(i<=5) { s=s*i; i++; } printf(...
TO CALCULATE THE SUM OF FIRST N EVEN NUMBERS
#include<stdio.h> void main() { int n, sum, i; printf("Enter value of n"); scanf("%d",&n); for(i = ...
CALCULATE SUM OF FIBONACCI SERIES UP TO A GIVEN TERMS
#include<stdio.h> #include<conio.h> void main() { int num1=0, num2=1, num3, n, term; printf("Enter number terms to ...
CALCULATE SUM OF ELEMENTS OF M X N MATRIX
#include<stdio.h> #include<conio.h> main() { int mat1[10][10],mat2[10][10],mat3[10][10], r1,c1,r2,c2,i,j; ...
INTRODUCTION OF 'C'
'C' PROGRAMMING IS DEVELOPED IN 1972 BY DENNIS RITCHIE AT "AT & T BELL'S LAB USA". C PROGRAMMING IS A HIGH LEVE...
TO CALCULATE x(y+z) BY USING USER DEFINED FUNCTION
#include<stdio.h> void power(int x,int y, int z) { int ans = 1, i; for(i = 1; i <= (y+z); i++) ans *= x; printf("%...
CALCULATION OF GCD & LCM OF TWO NUMBERS
#include<stdio.h> #include<conio.h> void main() { int lcm = 1, gcd = 1, a, b, i; printf("Enter two numbers to calcu...
CONVERT GIVEN DECIMAL NUMBER INTO BINARY NUMBER
#include<stdio.h> #include<conio.h> main() { int k=0,n,i,rem,x[10]; clrscr(); printf("PLEASE ENTER THE ...
COUNT THE NUMBER OF OCCURRENCE OF EACH NUMBER
#include<stdio.h> #include<conio.h> #define FOR for(i=0;i<n;i++) void main() { int no[50],i,j,n,count=0; clrscr(); ...
Followers
Programs
Web Toolbar by Wibiya
Its Me
Siraj Shaikh
View my complete profile
No of Views
0 comments: (+add yours?)
Post a Comment