- Create your own strlen(), strcpy(), strchr() functions as from string class <string.h>
- A Program to Check whether a number is Prime or not.
- Print all the prime numbers from 1 to 1000.
- Write all the prime numbers from 1 to 1000 in a file named “list_of_PrimeNumbers.txt”
Maven Scientists
Perfection comes from inside.
Saturday, 9 March 2013
IPPS - 2
Sunday, 27 January 2013
Decimal To Binary in C
#include <stdio.h>
int main()
{
int n;
int i = 0;
int binary[32];
int lb;
printf("Number : ");
scanf("%d", &n);
while(i<0)
binary[i++] = 0;
while(n > 0)
{
for( i = 0; i<32; i++ )
{
lb = n % 2;
binary[i] = lb;
n = n >> 1;
}
}
i = 31;
while(i>=0)
printf("%d", binary[i--]);
return 0;
}
int main()
{
int n;
int i = 0;
int binary[32];
int lb;
printf("Number : ");
scanf("%d", &n);
while(i<0)
binary[i++] = 0;
while(n > 0)
{
for( i = 0; i<32; i++ )
{
lb = n % 2;
binary[i] = lb;
n = n >> 1;
}
}
i = 31;
while(i>=0)
printf("%d", binary[i--]);
return 0;
}
Saturday, 29 September 2012
IPPS - 1 (Introducing Programming Problems Statements)
Hey Guys!
Here are some very easy but little bit tricky Programming Problems.
Choose any language you are familiar with.
HappY Coding!!
Here are some very easy but little bit tricky Programming Problems.
- Input a Binary number and output it in Decimal format.
- Input a number n and calculate its factorial.
(Factorial: n! = n*(n-1)*(n-1)*(n-2)* ... *2*1 )
(Bonus: Try for n = 100) - Input a sentence and the output must contain how many words does the sentence contain.
Sample
INPUT
This sentence has 4 words !!
Hello World!
To code is really fun @$hello how are you.
OUTPUT
4
2
9 - Calculate first n Fibonacci numbers, where n is user input.
Sample
INPUT
2
0
7
OUTPUT
0 1
0 1 1 2 3 5 8
(Bonus: How will you change your approach for large n; n > 1000)
Choose any language you are familiar with.
HappY Coding!!
Friday, 28 September 2012
Power Searching With Google
Google really wants
people to be at ease with search. The exact Google query you need to put
up for for your search can now be learned.
The course is live from 24 September till October 10.
You will have to submit one Mid-Class Assignment and one Post-Class Assignment.
Google is offering an online program on "Power Searching With Google" back again. If you missed the program a few months back here is your chance to be a Google Rockstar once again.
In this online video courses you will be taught the tips and tricks to search with Google like a pro.

This online course is available HERE
The course is live from 24 September till October 10.
You will have to submit one Mid-Class Assignment and one Post-Class Assignment.
In this online video courses you will be taught the tips and tricks to search with Google like a pro.
This online course is available HERE
Subscribe to:
Posts (Atom)