Ramesh’s basic salary is input through the keyboard. His
dearness allowance is 40% of basic salary, and house rent
allowance is 20% of basic salary. Write a program to calculate
his gross salary.
#include<stdio.h>
#include<conio.h>
void main()
{
int sal_amt,gro_sal;
printf("Enter your salary = ");
scanf("%d",&sal_amt);
gro_sal=sal_amt+sal_amt*0.40+sal_amt*0.20;
printf("Gross salary = %d",gro_sal);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .
Printf can be implemented by using __________ list.
Write a program to print a square of size 5 by using the character S.
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }
can u give me the c codings for converting a string into the hexa decimal form......
Print an integer using only putchar. Try doing it without using extra storage.
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
Write a program to receive an integer and find its octal equivalent?
How to access command-line arguments?