jituTechnology

jituTechnology

C Programming

A program to calculate the area and perimeter of the rectangle using macro.

A program to calculate the area and perimeter of the rectangle using macro. Codes /*A program to calculate the area and perimeter of the rectangle using macro*/ /*Programed by          Jitendra Kr Yadav                          10116                          15 Mar,2011*/ #include<stdio.h> #include<conio.h> #define AREA l*b #define PERIMETER 2*(l+b) main() { int l,b; printf(“Enter the length and […]

read more

A program to read the graphical character and print their equivalent ASCII code and vice versa

Here is the C source code to read the graphical characters given by user and print their equivalent ASCII code using simple input output operation. /*A program to read the graphical character and print their equivalent ASCII code*/ #include <stdio.h> #include <conio.h> void main() {     char a; //variable declaration    printf(“enter the graphical character […]

read more

Write a C program to read through an array of any type. Write a C program to scan through this array to find a particular value.

/*program to scan through this array to find a particular value programmed by: Name: Jitendra Kumar Yadav Roll: 10116 Date: 29 march 2011 */ #include <stdio.h> #include <conio.h> void main () { int i,n,index; int a[] = {1,2,3,4,5,6,7,8}; printf (“Enter a number from 1 to 8\n”); scanf (“%d”,&n); for (i=0;i<8;i++) { if (n==a[i]) index = […]

read more

Write a program to add first seven terms of the following series using loop 1/1!+2/2!+3/3!+…

Here is the c source code/program for: Write a program to add first seven terms of the following series using loop 1/1!+2/2!+3/3!+… /* write a program to add first seven series using for loop programmed by: Name: Jitendra kumar Yadav Roll: 16 Date: 12 feb 2011 */ #include <stdio.h> #include <conio.h> void main() {      […]

read more

Write a program to read N number of person’s ages in an array and print minimum,maximum and average age

/*program to read N number of person’s ages in an array and print minimum,maximum and average. programmed by: Name: JItendra Kumar Yadav Roll: 10116 Dtae 29 th march 2011 */ #include <stdio.h> #include <conio.h> void main () { int i,j,n; int sum=0; int max,min; float avg; int age[100]; printf(“Enter the number of people “); scanf […]

read more


Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930