Blog Stats
- 108,643 hits
Top Clicks
- None
Tweet Everyone
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Top Posts & Pages
- Write a C program to count the lines, words and characters in a given text.
- Write a C program to generate all the prime numbers between 1 and n, where n is a value supplied by the user
- Write a C program to find the 2’s complement of a binary number.
- Write C programs that implement the following sorting methods to sort a given list of integers in ascending order: Insertion sort
- Write C programs that implement the following sorting methods to sort a given list of integers in ascending order: Quick sort
Advertisements
this program cant give prime nos after 2… it gives only 1 and 2 ……. so plz check it again and tell me correct one……..
code is updated, check it once…
1. write a program to generate the first 10 all integer
2. write a program to compute s=1/2+2/4+3/6…..21/22
#include
void main()
{
int i;
for(i=0;i<=10;i++)
printf("\n%d",i);
}
#include
void main()
{
int i,s=0;
for(i=1;i<=21;i++)
s=s+(i/2*i) ;
printf("\n%d",s);
}