Question: #include int main ( ) { int n 1 , n 2 , n 3 , n 4 ; unsigned int u 1 , u
#include
int main
int n n n n;
unsigned int u u u u;
char ccc;
Arithmetic Operations
Initialize n and n
Write an expression for:
computing the sum of cube of n and the square of n and
storing the value in n as well as in n
Print the values n n n and n
Initialize n n and n
Conditional Expressions
Check whether n n and n form sides of a right triangle;
n should be if they are not and
should be nonzero if they are
Assignment Operations
The following expression is intended to compute the square of uu and
assign it to u
Fix it
u u u u u;
The following expression is intended to increment u and assign u to
u Fix it
u u;
Will the following expression fix the above? If not change it to fix!
u u u;
Initialize characters c and c
Check whether two characters are the same caseinsensitive ie upper
case or lower
case does not matter
Initialize character c
Check that it is neither whitespace space tab or newline nor alpha
numeric
Initialize character c
Check whether it is a vowel in lowercase or in uppercase
Printing and Formatting
Print an integer, padded on left with spaces to total chars
Print an integer, padded on right with spaces to total chars
Print an integer, padded on left with zeroes to total chars
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
