Example HTML page

Assignment 1: Finding Area (Examples)

1. Write a C Program to find the area of a circle?

2. Write a C Program to find the area of a triangle?

3. Write a C Program to find the area of the square?

4. Write a C Program to find the area of the rectangle?

5. What is the output of the following and trace it?

#include<stdio.h>
int main()
{
char ch=97;

printf(“%c\n”,ch++);
printf(“%d\n”,++ch);
printf(“%d\n”,ch–);
printf(“%c\n”,–ch);

return 0;

}

6. What is the output of the following and trace it?

#include<stdio.h>
int main()
{
char ch=65;

printf(“%c\n”,ch++);
printf(“%d\n”,++ch);
printf(“%d\n”,ch–);
printf(“%c\n”,–ch);

return 0;

}

Example HTML page

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest