Skip to main content

Posts

Showing posts from April, 2019

Shamim Sir Lap Report 2

1) WAP to accept any character from user and display its ASCII number on  screen. Ans: #include<stdio.h> void main() { char s; printf("Input the character here: "); scanf("%c",&s); printf("The ASCII of this Character: %d",s); } 2) WAP to input any ASCII number and display appropriate character on screen. Ans: #include<stdio.h> void main() { int s; printf("Input the ASCII number here: "); scanf("%d",&s); printf("The Character of ASCII:%c",s); } 3) WAP to input any Capital letter and display it with small letter. Ans: #include<stdio.h> void main() { char s; printf("Enter the Capital letter here :"); scanf("%c",&s); printf("the small letter is: %c", s+32); } 4) WAP to input any Small letter and display it with capital letter. Ans: #include<stdio.h> void main() { char s...