Showing posts with label Basic. Show all posts
Showing posts with label Basic. Show all posts

Tuesday, 26 June 2012

C program to calculate simple interest


#include<stdio.h>
#include<conio.h>


void main()
{

Thursday, 3 May 2012

C program to raise any number x to a positive power n


#include<stdio.h>
#include<conio.h>
#include<math.h>

Monday, 30 April 2012

C program to convert given number of days into years,weeks and days


void main()
{
int y,w,d,a;
clrscr();    //to clear the screen
printf("Enter total number of days:");
scanf("%d",&d);

C program to print ASCII value of a character


#include<stdio.h>
#include<conio.h>


void main()
{
int a;
char ch;

Sunday, 29 April 2012

C program that accepts marks in 5 subjects and outputs average marks


#include<stdio.h>
#include<conio.h>


void main()
{
int a,b,c,d,e,average;
clrscr();

C program that accepts radius of a circle and print its area



#include<stdio.h>
#include<conio.h>

Saturday, 28 April 2012

C program to find sum of two numbers


#include<stdio.h>
 #include<conio.h>

C program to print a message on the screen


#include<stdio.h>
#include<conio.h>