Pages

Sunday, 20 May 2012

program to print series 0,3,8,15,24,35,48,63,80,99.


64./*Write a program to print series*/
            0,3,8,15,24,35,48,63,80,99.

#include<stdio.h>
#include<conio.h>
main()
{
int i;
clrscr();
for(i=1;i<=10;i++)
{
printf("%d,",i*i-1);
}
getch();
}

OUTPUT
            0,3,8,15,24,35,48,63,80,99

65./*Write a program to print alphabets in small letter.*/

#include<stdio.h>
#include<conio.h>
main()
{
int a;
clrscr();
for(a=97;a<=122;a++)
printf("%c",a);
getch();
}

OUTPUT
            a b c d e f g h i j k l m n o p q r s t u v  w x y z

No comments:

Post a Comment