Category Archives

ASCII Value of ALL characters #include <stdio.h> int main() { int i; for(i=0;i<255;i++) { printf(“ASCII value of character %c=%d\n”,i,i);...

Write a C program ASCII values of all Characters

ASCII Value of ALL characters #include <stdio.h> int main() { int i; for(i=0;i<255;i++) { printf(“ASCII value of character %c=%d\n”,i,i);...

Only ASCII values #include <stdio.h> int main() { int i; char ch; for(i=0;i<256;i++) { printf(“%c”,ch); ch=ch+1; } return 0;...

Write a C Program to Only ASCII values

Only ASCII values #include <stdio.h> int main() { int i; char ch; for(i=0;i<256;i++) { printf(“%c”,ch); ch=ch+1; } return 0;...

#include <stdio.h> int main() { char ch; printf(“Enter the character”); scanf(“%c”,&ch); printf(“ASCII value of %c=%d”,ch,ch); return 0; } Output:...

Write a C Program to ASCII value of a Character:

#include <stdio.h> int main() { char ch; printf(“Enter the character”); scanf(“%c”,&ch); printf(“ASCII value of %c=%d”,ch,ch); return 0; } Output:...

#include<stdio.h> int fibonacci_series(int); int main() { int count, c = 0, i; printf(“Enter number of terms:”); scanf(“%d”,&count); printf(“\nFibonacci series:\n”);...

Write a C Program to display Fibonacci series using recursion

#include<stdio.h> int fibonacci_series(int); int main() { int count, c = 0, i; printf(“Enter number of terms:”); scanf(“%d”,&count); printf(“\nFibonacci series:\n”);...

Factorial: using symbol “! ” Mathematical Ex: 5! = 120 (5*4*3*2*1=120)) Program: #include<stdio.h> int main() { int i,fact,number; printf(“Enter...

Write a C Program to find factorial of number

Factorial: using symbol “! ” Mathematical Ex: 5! = 120 (5*4*3*2*1=120)) Program: #include<stdio.h> int main() { int i,fact,number; printf(“Enter...

Program: #include <stdio.h> int main() { int a, i; printf(“Enter a number: “); scanf(“%d”,&a); for(i=0; i<=5; ++i) { printf(“%d...

Write a c program Multiplication table

Program: #include <stdio.h> int main() { int a, i; printf(“Enter a number: “); scanf(“%d”,&a); for(i=0; i<=5; ++i) { printf(“%d...

Program: #include <stdio.h> #include <conio.h> int main(){ int a, b, c; printf(“Enter two numbers \n”); scanf(“%d %d”, &a, &b);...

Write ac program to swap two numbers

Program: #include <stdio.h> #include <conio.h> int main(){ int a, b, c; printf(“Enter two numbers \n”); scanf(“%d %d”, &a, &b);...

Program: #include <stdio.h> int main(){ int year; printf(“Enter a year :”); scanf(“%d”,&year); if(((year%400==0 )||(year%100!=0))&&(year%4==0)) printf(“%d is a leap year.\n”,year);...

Write C program to check Leap year or Not

Program: #include <stdio.h> int main(){ int year; printf(“Enter a year :”); scanf(“%d”,&year); if(((year%400==0 )||(year%100!=0))&&(year%4==0)) printf(“%d is a leap year.\n”,year);...

Add Two Integers User Input: #include <stdio.h> int main(){ int first integer, second integer, Sum of integers; printf(“Enter first...

Write a C program to add two integers

Add Two Integers User Input: #include <stdio.h> int main(){ int first integer, second integer, Sum of integers; printf(“Enter first...

Here, #include <stdio.h>: stdio.h is a header file for standred input/Output #include <conio.h>: Conio is a C language header...

Write a C Program to “Hello, World!”

Here, #include <stdio.h>: stdio.h is a header file for standred input/Output #include <conio.h>: Conio is a C language header...