Write a Program which Generates One Hundred Random Integers in the Range of 1 To
100, store them in an array and then prints the average. write three versions of the
program using Different Loop Constructs (e.g for, while and do. while).
Using For Loop
#include
#include
#include
void main()
{
int...
Read full history - Generate 100 Random numbers and print their average
Saturday, November 5, 2011
Generate 100 Random numbers and print their average
Free Download Turbo C for Windows 7 64 bit,32 bit And Windows Vista

Windows vista and windows 7 are both popular operating system, but when we compare this operating system with windows XP some of the basic operations/software which we use in XP won’t support in Vista or windows 7 operating system. For example command...
Tuesday, November 1, 2011
Find whether a given number is Strong or not
Write a program in C to find whether a given number is Strong or not
Program:
#include<stdio.h>
#include<conio.h>
void main()
{
int sof=0,n,dn,ctr,prod,rem;
clrscr();
printf("Enter the number\n");
scanf("%d",&n);
dn=n;
while(n!=0)
{
prod=1,ctr=1;
rem=n%10;
while(ctr<=rem)
{
prod=prod*ctr;
ctr=ctr+1;
}
sof=sof+prod;
n=n/10;
}
if(sof==dn)
{
printf("The...
About Me
- Unknown