What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-03-02 12:45:05
sum of diagonal elements of a matrix in c
#include <stdio.h> void main () { int i,j,matrix[10][10],m,n,sum=0; printf("Enter number of rows of matrix : "); scanf("%d", &m); printf("Enter number of columns of matrix : "); scanf("%d... Add solution -
C 2021-11-13 00:22:15
c program to find number of days in a month using switch case
/** * C program to print number of days in a month using switch case */ #include <stdio.h> int main() { int month; /* Input month number from user */ printf("Enter month number(1-12): "); scanf("%d", &mo... Add solution -
Other 2021-10-15 07:13:03
algorithm for Define structure to enter employee information like name, id, salary and date of joining. Use nested structure to get address of employee. WAP to read 10 records and display the details of employees.
#include<stdio.h> struct Address { char HouseNo[25]; char City[25]; char PinCode[25]; }; struct Employee { int Id; char Name[25]; ... Add solution