Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions