Question: #include int main ( ) { int n 1 , n 2 , n 3 , n 4 ; unsigned int u 1 , u

#include
int main()
{
int n1, n2, n3, n4;
unsigned int u1, u2, u3, u4;
char c1,c2,c3;
/* Arithmetic Operations */
/* Initialize n1 and n2*/
/* Write an expression for:
* computing the sum of cube of n1 and the square of n2 and
* storing the value in n3 as well as in n4
*/
/* Print the values n1, n2, n3, and n4*/
/* Initialize n1, n2, and n3*/
/* Conditional Expressions */
/* Check whether n1, n2, and n3 form sides of a right triangle;
* n4 should be 0 if they are not and
* should be non-zero if they are */
/* Assignment Operations */
/* The following expression is intended to compute the square of u1+u2 and
assign it to u3
Fix it.*/
u3= u1* u2+ u1* u2;
/* The following expression is intended to increment u1 and assign u1+6 to
u2 Fix it.*/
u2= u1+++5;
/* Will the following expression fix the above? If not change it to fix!*/
u2= u1++, u1+5;
/* Initialize characters c1 and c2*/
/* Check whether two characters are the same (case-insensitive i.e. upper-
case or lower-
case does not matter)*/
/* Initialize character c1*/
/* Check that it is neither whitespace (space, tab or newline) nor alpha-
numeric */
/* Initialize character c2*/
/* Check whether it is a vowel (in lower-case or in upper-case).*/
/* Printing and Formatting ...*/
/* Print an integer, padded on left with spaces to total 6 chars */
/* Print an integer, padded on right with spaces to total 6 chars */
/* Print an integer, padded on left with zeroes to total 6 chars */
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!