Answered step by step
Verified Expert Solution
Question
1 Approved Answer
9. Find the output from the following program int tmainO int i for ( i=1;i>=-7; i--) printf( %din, i ) ; getch0; return 0 10.
9. Find the output from the following program int tmainO int i for ( i=1;i>=-7; i--) printf( "%din", i ) ; getch0; return 0 10. Find the error and correct them in the following program void tmain() float bs, gs int da, hra; printf ("Enter basic salary") scanf ( "%d", &bs ) ; if (bs1500); hra=bs * 10 / 100 da-bs 90 100 else; hra 500 da-bs 98/100 gs bs+ hra da; printf( "gross salary = Rs. %f", &gs ) ; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started