answersLogoWhite

0

/* program without if statement */

#include<stdio.h>

#include<conio.h>

void main()

{

int a,c;

float b;

clrscr();

printf("Enter the value \n");

scanf("%f",&b);

a=c;

c=a%10;

printf("the right most digit is %d",c);

getch();

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Write a c program using string concept enter a sting and replace the new string in to old string and find no of occurrence?

print c co com comp compu


List three situations in which you might want to create a restore point?

1. Before you make major chages 2. Before you install a new program (incase it doesn't run, that way u can go back to the way the coputer was be for program was installed) 3. Before you replace a old program with a new one (the new one may not work as well as the old one)


How you get the size of arrays from user?

in c simply add three lines in the begining of your program: int x; printf("enter the size of the array to be entered :"); scanf("%d",&amp;x); after that use x as your maximum limit of array in your program. in c++ just replace above printf &amp; scanf statements by cout&lt;&lt;"enter the size of the array to be entered :"; &amp; cin&gt;&gt;x; respectively and do not use brackets.


How do you replace in visual foxpro?

You can use the REPLACE using below code SELECT TableName APPEND BLANK REPLACE FieldOne WITH THISFORM.TEXT1.VALUE REPLACE FieldTwo WITH THISFORM.TEXT2.VALUE REPLACE FieldThree WITH THISFORM.COMBO1.VALUE REPLACE FieldFour WITH THISFORM.COMBO2.VALUE


How to write a program in c which takes any random number like '1' '2' as input and give output 'one''two'?

Been so long since I wrote c I cant remember much about it. You will have to create a key capture process. If someone enters a charchacter have the ascii value compared to a list of instructions that you want it to perform. If 1 then replace value sent to screen with "one"If 2 then replace value sent to screen with "two"etc. It is a relatively simple program. It has just been 15 yrs or so since I have written anything so I can only give you generic examples. Hope this helps some.

Related Questions

Which program is meant to replace SSH?

There is no particular program meant to replace SSH. SSH is considered a modern and secure program, so there is no reason to replace it.


Which program did the Supplemental Nutrition Assistance Program replace?

food stamp program


How do you replace starter solenoid harley dividson 1995?

If you mean a Harley-Davidson from 1995, you don't. The solenoid is an integral part of the starter. However, there are kits available to replace some of the solenoid parts.


Where is the voltage regulator located on a 1999 Jeep Cherokee sport 4.0 L 4x4. Is it internal or an external?

In your PCM not the alternator Its built in the alternator be sure that you replace the alt with the same amp. alt it could be a 90 or 124 amp alternator. Replace the belt while you have the alternator off.


What is the integral of e raised to the square root of x divided by the square root of x?

replace square root o x with t.


What is going to replace spaceshuttles in the future?

The Orion space program.


How do you replace starter solenoid on Honda Element?

The starter solenoid on a Honda Element is integral to the starter. It cannot be replaced without replacing the starter as well.


How do you create a shell program?

The same way you create any other program, by designing it and then coding it. A shell program is no different to any other program in terms of how it is created. Its purpose is simply to provide access to the applications and utilities, perhaps organise them in some way, and to present key system components such as a clock or calendar, as well as system notifications from background services. In Microsoft Windows, for instance, Windows Explorer is the default shell program and this provides a desktop, taskbar, start menu and notification area. However, only the first instance of Explorer provides the shell. All other instances of Explorer simply open navigation windows. But while you cannot replace Windows Explorer itself (it is an integral part of the operating system), you can replace the shell component.


What are the benefits of installing a floating floor in a basement?

Installing a floating floor in a basement can provide benefits such as improved moisture resistance, easier installation over uneven surfaces, better insulation, and the ability to easily replace damaged sections.


How do you program a polar start model ps3025sh?

replace that old relic!


Why was it necessary for fritz haber to develop the synthetic ammonia?

It might have been to replace nitrogen.


Where is the fuel filter on a Kia Sedona 2005?

The fuel filter is an integral part of the fuel pump assy (located in the fuel tank) and cannot be replace separately