Professional Documents
Culture Documents
Shree Narayana English Medium School, Naroda: Roll No Timing
Shree Narayana English Medium School, Naroda: Roll No Timing
#include<stdio.h>
#include<conio.h>
#de�ine PI 3.14
void main ()
{
�loat SI,principal,rate,noofyears;
clrscr();
printf("Program is about Simple Interest \n");
printf("Enter the value of Principal = ");
scanf("%f",&principal) ;
printf("\n Enter the value of rate = ");
scanf("%f",&rate) ;
printf("\n Enter the value of no of years = ");
scanf("%f",&noofyears) ;
SI=(principal*rate*noofyears)/100;
printf("\n Simple Interest = %f",SI);
getch();
}
Q3) Write a HTML program of an ordered list. (T.B. Page no - 59)
<html>
<head>
<title> Ordered List in HTML </title>
</head>
<body>
<font color ="Blue">
<h1>An ordered list:
</font>
<ol>
<font size="6">
<b>
<li> Chocolates </li>
<li> lce-creams </li>
<li> Dry fruits </li>
</b>
</font>
</ol>
</body>
</html>
Q4) Check whether entered number is odd or even. (T.B. Page no - 269)
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int number;
prin�("Enter the number ");
scanf("%d",&number);
if(number%2==0)
{
prin�(" Number is Even ");
}
else
{
prin�(" Number is odd ");
}
getch();
}
*************COMPLETED*************