c program
c program
PROGRAM:
#include <stdio.h>
#include <string.h>
void printASCII(char c) {
void printAlphabetASCII() {
printf("\n");
printf("\n");
int main() {
char inputChar;
char inputString[100];
printf("Enter a character to find its ASCII value: ");
printASCII(inputChar);
printStringASCII(inputString);
printAlphabetASCII();
return 0;
OUTPUT:
Output:
PROGRAM:
#include <stdio.h>
void clearInputBuffer() {
void printSquares(int n) {
int getUserInput() {
int n;
return n;
int main() {
int n;
printf("This program will calculate the square of numbers from 1 up to the number you
provide.\n\n");
n = getUserInput();
printf("\nProgram Summary:\n");
printf("\nThank you for using the Square Calculator. Have a great day!\n");
return 0;
}
OUTPUT:
Welcome to the Square Calculator!
This program will calculate the square of numbers from 1 up to the
number you provide.
Program Summary:
You entered: 12
The squares of numbers from 1 to 12 have been calculated.
Thank you for using the Square Calculator. Have a great day