for example user gives input as " 20 or 20.0 or rs 20.0 or
20.00 or rs20 and so .. on " and the output should be
stored as " rs.20.00 " in a variable

Answer Posted / aditya

#include<stdio.h>
#include<conio.h>
void main()
{
string ss;
printf("enter the value :");
scanf("%s",&ss);
printf("the output is : %s",ss);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I get an accurate error status return from system on ms-dos?

857


Is register a keyword in c?

825


Why flag is used in c?

845


What is the role of && operator in a program code?

789


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

834


Is fortran still used in 2018?

794


Is main is a keyword in c?

837


List some of the dynamic data structures in C?

999


What is use of bit field?

997


Why c is known as a mother language?

836


What is null character in c?

862


What is sizeof return in c?

784


What is the difference between array and pointer?

765


What is nested structure?

770


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

2862