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

diff between exptected result and requirement?

1588


How can I list all of the predefined identifiers?

566


Is return a keyword in c?

582


Why is c so popular?

634


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

598






Is c dynamically typed?

659


in linking some of os executables are linking name some of them

1643


using for loop sum 2 number of any 4 digit number in c language

1713


c program to compute AREA under integral

1793


Does sprintf put null character?

580


what is uses of .net

1256


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

798


List the different types of c tokens?

603


What is the correct code to have following output in c using nested for loop?

601


What is volatile variable how do you declare it?

555