7.27.2014

Computer data storage Unit with Comparison their values

Q. What is data storage unit in computer? Compare the storage unit as bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte, pitabyte, exabyte and so on.

Ans. 

Storage unit is used to measurement of data. In other word the capacity of storage medium is measured in bytes.

There are various storage unit(smallest & biggest) available in the modern computer era. The smallest storage unit is bit. bit is also called binary digit(b) or simple "binary". Hence the value of bit is 0 or 1.

The following table shows the list of computer data storage unit as smallest to biggest:

6.30.2014

Convert any number to word

Q. Write a C program to convert any number to words, for example if 
user entered number = 45764
then output = Four Five Seven Six Four

Ans.

/*c program for convert number to word*/
#include<stdio.h>
int main()
{

6.13.2014

Comparison Million Billion Trillion - Lakh Crore Kharab Series

In daily life we are many time confused about the equality of differ type number unit as million,billion,trillion v/s lakh,crore,kharab etc.
So today let's now knowing about How much million in Lakh and whether a billion is das lakh or ek Arab(i.e. simply Arab).


The answer of above question may be differ as a geographic location. In Europe continents(i.e all english countries) peoples representing the number as Million, Billion, Trillion whereas Asia continents peoples representing the number as Lakh, Crore, Kharab and so on.
Let's comparison of number representing system in tabular format:

6.04.2014

Convert Any Digital Number Value In Words

Q. Write a C program that convert any digital number value in worlds as:

User entered value: 895484
then output in words as:
Eight Lakh Ninety Five Thousand Four Hundred Eighty Four

Ans.

/*c program that convert any digital number to words*/
#include<stdio.h>
#include<conio.h>
#include<math.h>

void checkNumber(int num);
void checkNumber1(int num);
void checkNumber2(int num);
void checkNumber3(int num);
void checkNumber4(int num);

void value1(int num);
void value2(int num);
void value3(int num1,int num2);

int main()
{

 int num;

5.15.2014

Continuous Vertical Number Pyramid

Q. Write a C program to print the following continuous vertical number pyramid design as:

1
2  7 
3  8  13
4  9  14  19
5 10  15  20  25

Ans.

/*c program for continuous vertical number pattern*/
#include<stdio.h>
int main()
{

4.03.2014

Nested 1 Type Symbol Pyramid

Q. Write a nested single symbol pyramid C program as:

#
#
##
##
###
###
####
####

Ans.

/*c program for nested single symbol pyramid*/
#include<stdio.h>
int main()
{
 int num,r,c,z;
 printf("Enter Maximum Loop Repeat Number: ");
 scanf("%d", &num);

4.01.2014

Nested 2 Types Symbol Pyramid

Q. Write a C program to print the following nested 2 types different symbol pyramid as:

@
#
@@
##
@@@
###

Ans.

/*c program for nested 2 types different symbol pyramid*/
#include<stdio.h>
int main()
{
 int num,r,c,z;
 printf("Enter Maximum Loop Repeat No. : ");
 scanf("%d", &num);