Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Commit 1e7dc90

Browse files
Readme File
1 parent 473079b commit 1e7dc90

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

Basic C Programs/ASCII.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// A program to print ASCII value off Character.
2+
3+
#include<stdio.h>
4+
int main()
5+
{
6+
char a;
7+
int b;
8+
printf("Enter the character: ");
9+
scanf("%s", &a);
10+
11+
b=a;
12+
printf("Output is= %d\n", b);
13+
14+
return 0;
15+
}

Basic C Programs/ASCII.exe

383 KB
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Conevrt a Person's Name in Abreviated Name
2+
3+
#include<stdio.h>
4+
int main()
5+
{
6+
char fname[40], mname[40], lname[40];
7+
printf("Enter the first name, Middle Name and Last Name: \n");
8+
scanf("%s %s %s", &fname, &mname, &lname);
9+
10+
printf("Abbreviated name: %c. %c. %s\n", fname[0], mname[0], lname);
11+
12+
return 0;
13+
}
383 KB
Binary file not shown.

0 commit comments

Comments
 (0)