jituTechnology

jituTechnology

Write a program to print all the prime numbers from 1 to 500. (A prime number is one which is divisible by 1 or itself)

Here is the c source code/program for: Write a program to print all the prime numbers from 1 to 500. (A prime number is one which is divisible by 1 or itself) /* a program to print all prime number from 1 too 500 programmed by: Name: Jitendra Kumar Yadav Roll: 16 Dtae: 12 feb […]

read more

Write a program to calculate the factorial of a given number

Here is the c source code/program for: Write a program to calculate the factorial of a given number. /* a programme to calculate the factorial of a entered number*/ #include <stdio.h> #include <conio.h> void main() {      int a,i;    int fact=1;    printf(“Enter the number to calculate the factorial: “);    scanf(“%d”,&a);    for(i=1; […]

read more

Write a program that will read two numbers, and display the following menu:

This is the c source code/program for: Write a program that will read two numbers, and display the following menu: MENU 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Square 6. Cube /* a program to enter two number and perform the task as per menu programmed by:Jitendra */ #include <stdio.h> #include <conio.h> #include […]

read more

write a switch Statement that will examine the value of char type variable called color and print one of the following message, depending upon the character assigned to color.

This is the c source code/program for: write a switch Statement that will examine the value of char type variable called color and print one of the following message, depending upon the character assigned to color. A. RED, if either r or R assigned to color B. Green, if either g or G is assigned […]

read more

Read an integer value. Assume it is the number of a month of the year; print out the name of that month

Here is the c source code for: Read an integer value. Assume it is the number of a month of the year; print out the name of that month /* a program to enter the number , assume it the monthe of the year and print the corresponding month programmed by : Name: Jitendra Yadav  […]

read more