C Program to Find ASCII Value of a Character
Program to Print ASCII Value #include <stdio.h> int main() { char c; printf(“Enter a character: “); scanf(“%c”, &c); // %d
Read moreProgram to Print ASCII Value #include <stdio.h> int main() { char c; printf(“Enter a character: “); scanf(“%c”, &c); // %d
Read moreProgram to Find the Size of Variables #include<stdio.h> int main() { int intType; float floatType; double doubleType; char charType; //
Read moreProgram to Add Two Integers #include <stdio.h> int main() { int number1, number2, sum; printf(“Enter two integers: “); scanf(“%d %d”,
Read moreProgram to Multiply Two Numbers #include <stdio.h> int main() { double a, b, product; printf(“Enter two numbers: “); scanf(“%lf %lf”,
Read moreProgram to print half pyramid using * #include<stdio.h> int main() { int i, j, rows; printf(“Enter number of rows:
Read moreProgram to Print English Alphabets #include <stdio.h> int main() { char c; for (c = ‘A’; c <= ‘Z’; ++c)
Read moreMultiplication Table Up to 10 #include <stdio.h> int main() { int n, i; printf(“Enter an integer: “); scanf(“%d”, &n); for
Read moreUsing if Statement #include <stdio.h> int main() { double n1, n2, n3; printf(“Enter three different numbers: “); scanf(“%lf %lf %lf”,
Read moreReverse an Integer #include <stdio.h> int main() { int n, rev = 0, remainder; printf(“Enter an integer: “); scanf(“%d”, &n);
Read moreThe Fibonacci sequence is a sequence where the next term is the sum of the previous two terms. The first
Read more