C Programming
Chapters
Top questions
See all →- C Program to find Sum of Diagonal Elements of a Matrix #include<stdio.h> int main() int i, j, rows, columns, a[10][10], Sum = 0; printf("n Please Enter Number of rows and columns: "); scanf("%d %... 1
- C Program to Find Hcf and Lcm of Two Numbers #include <stdio.h> #include <conio.h> int main() int a, b, num1, num2, temp, gcd, lcm; printf("Enter two numbersn"); scanf("%d %d", &a, &b);... 1
- C Program to Calculate Power of a Number #include <stdio.h> int main() { int base, exp; long double result = 1.0; printf("Enter a base number: "); scanf("%d", &base); printf("Enter... 1
- C Program to Check Armstrong Number Answer: An Armstrong number with n digits equals the sum of each digit raised to the power n (for example 153 = 1³ + 5³ + 3³ and 1634 = 1⁴ +... 2
- C programto check whether a word is palindrome or not.. #include<stdio.h> #include<conio.h> #include<string.h> int main() char str[20]; int i, len, temp=0; int flag = 0; printf("Enter a string:");... 1
- C Program to Swap Two Numbers #include <stdio.h> #include <conio.h> int main() int firstNumber, secondNumber, temp; printf("Enter two numbers n"); scanf("%d %d", &firstNu... 1